Add documentation for creating custom forecast types

Open
#1,149 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
55/100
Issue type
Documentation
Clarity
Mostly clear
Activity status
Quiet
Tech stack
r
Domain
documentation

Research direction

Start by reading the README, existing scoring-function vignettes, and the score() roxygen documentation to follow the package's extension conventions. Create a vignette or article with an end-to-end custom forecast type covering the listed constructors, validation, scoring, metrics, duplicate detection, and NAMESPACE S3 registration; done means the example is complete and usable.

Written by the indexing model from the issue text.

Description

documentation

Problem

The package supports extensibility through S3 dispatch but there is no documentation covering how to create a custom forecast type. The README mentions users can "extend existing classes to handle new types of forecasts" and the manuscript acknowledges this gap, noting that "a third area of improvement is the addition of case studies and vignettes that make working with and extending functionality from the package easier."

Existing documentation

  • Custom scoring functions are well covered (vignettes, score() roxygen, manuscript).
  • Custom forecast types are not documented at all.

What's needed

A vignette or article explaining the steps to create a new forecast type, including:

  • Creating as_forecast_<type>() constructor (generic + default method)
  • Implementing assert_forecast.<type>() for validation
  • Implementing score.<type>() for scoring
  • Implementing get_metrics.<type>() for default metrics
  • Implementing get_forecast_type_ids.<type>() for duplicate detection (after #888)
  • Registering S3 methods in NAMESPACE
  • Working example of an end-to-end custom type

This was opened by a bot. Please ping @seabbs for any questions.

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.