Last active
March 16, 2020 23:03
-
-
Save santiagocasas/6f27ed5b4ae0e10ea312b6c91d97a2bf to your computer and use it in GitHub Desktop.
loaddata
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
leaveout = -1 | |
for country in countries_list: | |
print('----') | |
print('Country: ', country) | |
if leaveout==0: | |
leaveout=None | |
x = np.array(list(df_dict[country]['DayCount'].values))[0:leaveout] ##remove last data point to make prediction | |
y = np.array(list(df_dict[country]['Cases'].values))[0:leaveout] ##remove last data point to make prediction | |
y0 = y[0] | |
yf = y[-1] | |
print("Initial number of cases: ", y0) | |
print("Current number of cases: ", yf) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment