|
2 | 2 |
|
3 | 3 | ⚠️ This is a work in progress.
|
4 | 4 |
|
5 |
| -_`pyrenew-flu-light` is an instantiation of an [Epidemia](https://imperialcollegelondon.github.io/epidemia/) influenza forecasting model in [PyRenew](https://github.com/CDCgov/PyRenew)._ |
| 5 | +_`pyrenew-flu-light` is an influenza forecasting model (originally written in `R`, using the package [Epidemia](https://imperialcollegelondon.github.io/epidemia/), with the name `cfaepim`) that has been re-instantiated via [PyRenew](https://github.com/CDCgov/PyRenew)._ |
6 | 6 |
|
7 |
| -NOTE: Presently, this `pyrenew-flu-light` cannot be installed and used with current NHSN, as its author is validating it on historical influenza data. |
| 7 | +NOTE: Presently, this `pyrenew-flu-light` cannot be installed and used with current NHSN data. |
8 | 8 |
|
9 |
| -Run command typically used: |
| 9 | +## Usage |
| 10 | + |
| 11 | +PFL (`pyrenew-flu-light`) can be used in two modes: "active" and "historical". The "active" mode uses respiratory incidence data sourced from available API frameworks whereas the "historical" mode relies on saved dataset snapshots (currently, these snapshots are from the 2023-24 NHSN data, and were generated by `cfaepim` code). |
| 12 | + |
| 13 | +Before running PFL, installing `poetry` and creating a virtual environment will very likely be necessary. This can be first done via `pipx install poetry` (see [Poetry](https://python-poetry.org/docs/) website for more information) and then, to create the environment, `poetry install` followed by `poetry shell` in the PFL folder (only done after cloning: `git clone https://github.com/CDCgov/pyrenew-flu-light`). |
| 14 | + |
| 15 | +After `poetry shell` has been run, then to use the "historical" mode (once within the folder `pyrenew_flu_light`), the `run.py` file creates an _experiment_. Each experiment generates forecasts based on selected jurisdictions and a configuration file. The configuration files for the "historical" mode are derived from the configuration files used in `cfaepim`; the reader will most often never need to worry about configuration files in the "historical" mode. To run: |
10 | 16 |
|
11 | 17 | ```
|
12 |
| -poetry run python tut_epim_port_msr.py --reporting_date 2024-01-20 --regions NY --historical --forecast |
| 18 | +poetry run python run.py --reporting_date 2024-01-20 --regions NY,AL,CA --historical --forecast --exp_name experiment_01 |
13 | 19 |
|
14 |
| -python3 tut_epim_port_msr.py --reporting_date 2024-01-20 --regions NY --historical --forecast |
| 20 | +poetry run python run.py --reporting_date 2024-03-30 --regions not:NY,AL,CA --historical --forecast --exp_name experiment_02 |
15 | 21 | ```
|
16 | 22 |
|
17 | 23 | ## ...Contained Within This Repository
|
18 | 24 |
|
19 | 25 |
|
20 |
| -- [x] An Apache 2.0 license |
21 |
| -- [x] An issue template (taken from PyRenew) |
22 | 26 | - [ ] A pull request template
|
23 |
| -- [x] A `pre-commit` schema |
24 |
| -- [x] A `.gitignore` file (taken from PyRenew) |
25 |
| -- [ ] A website |
26 |
| -- [ ] Formal contribution language (hybrid, from `cdcent`) |
| 27 | +- [ ] A website. |
| 28 | +- [x] An Apache 2.0 license |
| 29 | +- [x] An issue template (taken from PyRenew). |
| 30 | +- [x] A `pre-commit` schema. |
| 31 | +- [x] A `.gitignore` file (taken from PyRenew). |
| 32 | +- [x] Formal contribution language (hybrid, from `cdcent`) |
27 | 33 |
|
28 | 34 |
|
29 | 35 | ## CDCGov & Disclaimers, Notices, And Code Of Conduct
|
|
0 commit comments