epiforecasts / EpiNow2

Estimate Realtime Case Counts and Time-varying Epidemiological Parameters
https://epiforecasts.io/EpiNow2/dev/
Other
116 stars 33 forks source link

Add a warning when PMFs are very sparse in the tails #738

Closed seabbs closed 3 months ago

seabbs commented 3 months ago

As flagged in #735 it might be useful to flag to users when the PMFs they are passing (or are specifying via priors etc) have very sparse right tails as these will drastically increase run time with very small increases in accuracy.

An example check could be if more than say 5 indices in the PMF are smaller than 1e-6 from the end of the PMF consecutively.

We likely want to make this warning once per session etc so as to not annoy users that want this functionality.