Jiranuwat commited on
Commit
7d1d9b3
·
1 Parent(s): d4ab6f7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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)