tidyverts / tidyverts/fabletools

Add `coverage()` accuracy metric

Open
#368 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
R
Stars
98
Forks
37
PR merge metrics
No merged PRs in 30d

Description

coverage <- function(.dist, .actual, percentile = 80, na.rm = TRUE, ...){
  intvl <- hilo(.dist, percentile)
  within <- (.actual > intvl$lower) & (.actual < intvl$upper)
  mean(within)
}

Contributor guide

No contributing guide indexed for this repository

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.

Research direction

The issue proposes a coverage() function using hilo(.dist, percentile) and mean(within); start by locating the package's existing accuracy metrics and the hilo entry point. Done means the metric is added with the shown percentile and na.rm behavior and its interval check produces the coverage result.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
data
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.