Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -123,7 +123,7 @@ def SIR(country,R0,t_infective,pop):
|
|
123 |
|
124 |
scaler = all_location[country]['total_cases'].apply(lambda x : x/pop)
|
125 |
rangee = len(all_location[country]['total_cases'])
|
126 |
-
rmpe = mean_absolute_percentage_error(scaler,i[0:rangee])
|
127 |
|
128 |
|
129 |
return R0,t_infective,beta,gamma,rmpe,plotdata(t, s, i,r,R0),compare_plt(country,i,pop)
|
|
|
123 |
|
124 |
scaler = all_location[country]['total_cases'].apply(lambda x : x/pop)
|
125 |
rangee = len(all_location[country]['total_cases'])
|
126 |
+
rmpe = mean_absolute_percentage_error(scaler,i[0:rangee])*100
|
127 |
|
128 |
|
129 |
return R0,t_infective,beta,gamma,rmpe,plotdata(t, s, i,r,R0),compare_plt(country,i,pop)
|