A program to give forecast of expected number of Covid cases on the basis of data from last 28 days.
Files included:-
1)case_time_series.csv - Time series data of Covid cases from 1st March 2020 in India updated every day. (https://api.covid19india.org/csv/latest/case_time_series.csv)
2)model.py - Python script to train the model on the basis of previous data. Uses Keras.
3)predict.py - Asks for number of days the forecast is needed and prints the forecasts along with drawing graphs.
4)model_final.json - Model specifications in json format for easier loading
5)model_final.h5 - Saved weights
How to use:- Download all the files and save in one folder. Make sure you have Keras and Tensorflow(>2.0) installed.
-If you want to see the forecast using the data available till 21st October 2020, simply use predict.py
-If you want to see the forecast using the latest data, download and replace case_time_series.csv from the link. Remove all the lines which show cases of February (Important). Then use predict.py
-If you want to train using the latest data and then see the forecast, do the upper step and then use model.py to train and then model.py to predict.