Pattr commited on
Commit
578ba67
·
verified ·
1 Parent(s): b05fd3e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -9
app.py CHANGED
@@ -53,16 +53,9 @@ province_mapping = {
53
  }
54
 
55
 
56
- #with open('prophet_model.json', 'r') as fin:
57
- # prophet_model = model_from_json(json.load(fin))
58
 
59
- params = {
60
- 'changepoint_prior_scale': 0.1,
61
- 'seasonality_prior_scale': 0.1,
62
- 'interval_width' : 0.2,
63
- }
64
- prophet_model = Prophet(**params)
65
- prophet_model.fit(get_dataset())
66
 
67
  def will_rain(year, month, date):
68
  _date = pd.to_datetime(f'{year}-{month}-{date}')
 
53
  }
54
 
55
 
56
+ with open('prophet_model.json', 'r') as fin:
57
+ prophet_model = model_from_json(json.load(fin))
58
 
 
 
 
 
 
 
 
59
 
60
  def will_rain(year, month, date):
61
  _date = pd.to_datetime(f'{year}-{month}-{date}')