Port partial pooling and the weight types, then rewrite the extension guide

Open
#105 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Active
Domain
data

Research direction

Start by reading partial_pooling.jl at the strata definitions and task assignment assumptions, then inspect weights.jl and FittedPartialPooling.weights to understand the layouts being ported. Check whether ForecastTarget can express the strata, and read docs/src/extending.md for the extension workflow. Done means partial pooling and both weight types work on ForecastSet, the extension guide is rewritten around it, and ForecastTable remains the long-format input and output type.

Written by the indexing model from the issue text.

Description

enhancement

partial_pooling.jl defines strata as subsets of the task columns (partial_pooling.jl:98) and assumes each task falls wholly inside one stratum (partial_pooling.jl:162). It is the method most dependent on the row layout, and the one most likely to show that ForecastTarget cannot express what it needs; that is worth finding out before release. EnsembleWeights (weights.jl, whose :per_quantile form is a long frame keyed on output_type_id) and FittedPartialPooling.weights carry the same layout.

Port partial pooling and both weight types onto the set, adjusting ForecastTarget if the strata cannot be expressed. Then rewrite docs/src/extending.md, which currently tells third-party methods to work on ft.data with groupby, around iterating a ForecastSet. Once this is done ForecastTable is only the long-format input and output type.

Dominant language
Julia
Stars
2
Forks
0
Avg merge
2h 49m
Merged PRs (30d)
1

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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/ForecastEnsembles.jl

All issues in epiforecasts/ForecastEnsembles.jl

Similar issues

More Julia issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.