epiforecasts / forecast.vocs

Contains models and tools to produce short-term forecasts for both case and sequence notifications assuming circulation of either one or two variants. Tools are also provided to allow the evaluation of the use of sequence data for short-term forecasts in both real-world settings and in user generated scenarios.
http://epiforecasts.io/forecast.vocs
Other
8 stars 3 forks source link

Feature: Extend generic interface #92

Closed seabbs closed 3 years ago

seabbs commented 3 years ago

This PR extends the generic interface by exposing the ability for a custom function mapping observations to a list as required by stan. It also splits fv_posterior into a generic function fv_posterior which just wraps posterior tooling to summarise the posterior in an opionated way and fv_tidy_posterior which does model specific tidying to enable easy use of downstream functions.

This PR also:

codecov[bot] commented 3 years ago

Codecov Report

Merging #92 (e95693f) into main (2e8f3e4) will increase coverage by 0.15%. The diff coverage is 88.88%.

:exclamation: Current head e95693f differs from pull request most recent head caabf0b. Consider uploading reports for the commit caabf0b to get more accurate results Impacted file tree graph

@@            Coverage Diff             @@
##             main      #92      +/-   ##
==========================================
+ Coverage   87.69%   87.85%   +0.15%     
==========================================
  Files          11       11              
  Lines         691      700       +9     
==========================================
+ Hits          606      615       +9     
  Misses         85       85              
Impacted Files Coverage Δ
R/generate-data.R 0.00% <0.00%> (ø)
R/model-validation.R 0.00% <ø> (ø)
R/model.R 100.00% <ø> (ø)
R/plot.R 88.05% <ø> (ø)
R/utils.R 100.00% <ø> (ø)
R/forecast.R 92.42% <100.00%> (+0.11%) :arrow_up:
R/postprocess.R 98.54% <100.00%> (+0.05%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 2e8f3e4...caabf0b. Read the comment docs.