-
Notifications
You must be signed in to change notification settings - Fork 324
Running Checks Locally
Abdul Hannan edited this page Jul 21, 2020
·
8 revisions
- Install Python3.x https://www.python.org/downloads/
- Clone the repository git clone https://github.com/reichlab/covid19-forecast-hub.git
- Add your files to
data-processed/<TeamName>-<ModelName>
- Run these commands for one-time setup from the root of this repository.
sudo easy_install pip
pip3 install --upgrade setuptools
pip3 install -r visualization/requirements.txt
Validate new forecast files added by running this command at the root of the repository.
python3 code/validation/test-formatting.py
The previous command just runs a test on all files that have not been checked previously by the CI. If you're updating a single forecast, it will not run checks on that. To force validate a check on a particular forecast file, run the following command:
python3 code/validation/validate_single_forecast_file.py <forecast>
The <forecast>
option should be a string. It can be specified with one of the following options:
-
model_abbr
:- Specifying this for
<forecast>
will run the forecast validation checks for all files with thatmodel_abbr
. Example: SpecifyingCOVIDhub-ensemble
will run validations for all forecast files by theCOVIDhub-ensemble
model.
- Specifying this for
- The path inside
data-processed
folder:- You can also specify a path to the forecast file within the
data-processed
folder. Example:data-processed/COVIDhub-ensemble/2020-04-13-COVIDhub-ensemble.csv
. You can also omit the extension.
- You can also specify a path to the forecast file within the
- Home
- Submitting Forecasts
- Data Validation
- Truth Data
- Baseline model
- Weekly ensemble release
- Developer