-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Joseph Galasso
committed
May 20, 2021
1 parent
551240f
commit 14af27b
Showing
12 changed files
with
96 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Model Training and Forecasting | ||
|
||
### Description | ||
All the files in this directory sequentially update datasets, merge them into a training dataset, train Random Forest models, and generate projections and visualizations of those projections for [itsonit.com](https://www.itsonit.com) and the [COVID-19 Forecast Hub](https://covid19forecasthub.org/). Output is found in the `output/` directory. | ||
|
||
### Files | ||
- **merge.py** updates time-series datasets in the `data/` directory and merges all datasets in this directory into training datasets | ||
- **train.py** trains mobility and non-mobility Random Forest models for forecasting COVID-19 cases and then generates projections and feature importance scores for the models | ||
- **predict.py** reformats and condenses projections | ||
- **web.py** reformats projections for the website | ||
- **map.py** generates visualizations of the projections | ||
- **reichlab.py** reformats projections for the COVID-19 Forecasting Hub |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Model Output | ||
|
||
### Description | ||
The subdirectories (as explained below) contain the output files of the code in the `model/` directory. | ||
|
||
### Subdirectories | ||
- `feature_ranking/` contains feature importance scores. Those used in the publication manuscript are isolated in the `feature_ranking/publication/` subdirectory. | ||
- `model_stats/` contains statistics about model performance on training and validation datasets. Those used in the publication manuscript are isolated in the `model_stats/publication/` subdirectory. | ||
- `raw_predictions/` contains partially condensed projections and features for their counties from the training dataset. Those used in the publication manuscript are isolated in the `raw_predictions/publication/` subdirectory. | ||
- `ReichLabFormat/` contains condensed and reformatted projections for the [COVID-19 Forecast Hub](https://covid19forecasthub.org/). Those used in the publication manuscript are isolated in the `ReichLabFormat/publication/` subdirectory.\ | ||
- `website/` contains any visualizations or data files for [itsonit.com](https://www.itsonit.com) or social media communications. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Publication Data and Figures | ||
|
||
### Description | ||
The files in this directory generate all figures and statistics presented in the publication manuscript. The subdirectories in this directory contain the figures/statistics or other input data required to generate them. | ||
|
||
### Files | ||
- **performance_comparison.py** loads data from the `pandemic-central/output/ReichLabFormat/publication/` directory and the `data/comparison_models/` subdirectory to generate statistics on their relative performance. These statistics are stored in the `output/model_performance/` subdirectory. | ||
- **performance_graph.py** produces graphs of the statistics from `performance_comparison.py`. These graphs are stored in the `output/performance_figures/` subdirectory. | ||
- **feature_importance.py** produces graphs of computed feature importances over time from datasets in the `pandemic-central/output/feature_ranking/publication/` directory. The output graphs are in the `output/feature_importance_figures/` subdirectory. | ||
- **rt_alignment.py** graphs an example of the R<sub>t</sub> alignment process with the case curves, producing the figure in the `output/rt_alignment_figures/` subdirectory. | ||
- **misc_stats.py** prints statistics referenced in the publication manuscript Results and Discussion section. | ||
|
||
### Subdirectories | ||
- `data/` contains projections from other models in the `data/comparison_models/` subdirectory and the **higher_corrs.csv** file originally found in the `pandemic-central/data/Rt/` directory, but computed for 2021-01-10 projections. | ||
- `output/` contains output figures and datasets from the code files in this directory as described in the section directly above on Files in this directory. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters