Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testcount forecasting #20

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

lhelleckes
Copy link

This PR adds a module data_preprocessing.py which allows to forecast testcounts using fbprophet.

Since the forecast can also be applied for historic data, it serves as a smoothing for anomalies (#8). For regions with delayed data publishing, it can be used to forecast the missing data.

@michaelosthege michaelosthege changed the title Testcount forecasting [WIP] Testcount forecasting Jul 8, 2020
@michaelosthege
Copy link
Collaborator

With the latest changes, the get_holidays function became more flexible.
Most importantly with predict_testcounts(region="all", ...), testcounts are forecasted while taking into account all national and all regional holidays.

Also, a bug was fixed such that now the function can actually predict holiday-induced drops in testcounts.

@michaelosthege michaelosthege changed the title [WIP] Testcount forecasting Testcount forecasting Jul 8, 2020
result : pandas.Series
the date-indexed series of smoothed/predicted testcounts
m : fbprophet.Prophet
the phophet model

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit small typo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants