Skip to content

Commit

Permalink
Updated Readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
saminens committed May 11, 2020
1 parent b9ca4be commit cb12601
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
21 changes: 20 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,21 @@
# covid-analysis
A Framework for quantifying mitigation efforts by various countries
A Framework for quantifying mitigation efforts by various countries.
The detailed analysis can be found here. [Mitigation Efforts Analysis](https://medium.com/@soujanyas_9480/quantifying-covid-mitigation-efforts-by-countries-4b6e909f8162)

# Installation
```buildoutcfg
git clone https://github.com/saminens/covid-analysis
```
# How to use this repository?

1. Download the data from [John Hopkins Repository](https://github.com/CSSEGISandData/COVID-19/tree/master/csse_covid_19_data/csse_covid_19_daily_reports)
2. Run the following script in this repository
```buildoutcfg
cd ./covid-analysis
python -m src.curve_fit --input-fpth ~/Desktop/COVID-19/csse_covid_19_data/csse_covid_19_time_series/time_series_covid19_confirmed_global.csv --mitigation-start-date 2020-02-18 --p0-before 0 200000 0 0.08333 0 --p0-after 0 83403 5 0.08333 0 --country China
```

# Future Work:

1. Deaths can be modeled in similar fashion.
2. Other parameterized curves can be explored instead of Bass Model Diffusion curves.
9 changes: 8 additions & 1 deletion src/curve_fit.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,14 @@ def plot_curves(popt1, popt2, x2, xdata, ydata, country):
def main(input_file_path, country, mitigation_start_date, p0_before, p0_after):
"""
Returns: NA, main function
Args:
input_file_path:
country:
mitigation_start_date:
p0_before:
p0_after:
Returns:
"""
x1, y1, x2, y2, xdata, ydata = prepare_data(input_file_path, country, mitigation_start_date)
Expand Down

0 comments on commit cb12601

Please sign in to comment.