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: Add stan_fit unit tests #77

Closed seabbs closed 3 years ago

seabbs commented 3 years ago

This PR adds unit tests for stan_fit. These tests check the output from stan_fit for each strain model with a range of options. Convergence diagnostics are also assessed. A downside of this approach is that unit tests now take approximately 5 minutes to run to completion.

This PR also:

codecov[bot] commented 3 years ago

Codecov Report

Merging #77 (86d3dce) into main (03b44f7) will increase coverage by 4.17%. The diff coverage is 100.00%.

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

@@            Coverage Diff             @@
##             main      #77      +/-   ##
==========================================
+ Coverage   22.59%   26.76%   +4.17%     
==========================================
  Files          10       10              
  Lines         664      665       +1     
==========================================
+ Hits          150      178      +28     
+ Misses        514      487      -27     
Impacted Files Coverage Δ
R/model.R 100.00% <100.00%> (+26.73%) :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 03b44f7...d68859e. Read the comment docs.