Make `get_metrics()` more customisable

Open
#944 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
r
Domain
analytics

Research direction

Start by reading the get_metrics() entry point and the discussion in related issue #789. The issue proposes exclusion, replacement, and additional arguments but does not settle the API shape or define completion criteria; those decisions need clarification before implementation.

Written by the indexing model from the issue text.

Description

enhancement feature request

We could add additional functions / additional arguments to get_metrics(). Consider something like this:

get_metrics(
  example_quantile, 
  exclude = c("ae_median"), 
  replace = c(wis, purrr::partial(wis, na.rm = TRUE), 
  add_args = c(wis, list(na.rm = TRUE))

or something like this. Not so sure about add_args, but replace could actually be nice?

maybe related: #789

Dominant language
R
Stars
67
Forks
24
Avg merge
1h 24m
Merged PRs (30d)
2

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from epiforecasts/scoringutils

All issues in epiforecasts/scoringutils

Similar issues

More R issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.