howlbz commited on
Commit
43f19a9
1 Parent(s): cc4670d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -23,7 +23,7 @@ def forecast():
23
  name = 'miami_data_air_quality_fv',
24
  version = 1
25
  )
26
- train_data = feature_view.get_training_data(1)[0:7]
27
  train_data = train_data.drop(labels = 'city_y',axis =1)
28
  train_data = train_data.rename(columns = {'city_x':'city'})
29
  train_data = train_data.sort_values(by="date", ascending=True).reset_index(drop=True)
@@ -33,7 +33,7 @@ def forecast():
33
  y = X.pop("aqi_next_day")
34
  X = X.drop(columns =['city','conditions']).fillna(0)
35
 
36
- today_data = X[1:2]
37
  y = model.predict(today_data)
38
 
39
  res = int(y[0])
 
23
  name = 'miami_data_air_quality_fv',
24
  version = 1
25
  )
26
+ train_data = feature_view.get_training_data(1)[0]
27
  train_data = train_data.drop(labels = 'city_y',axis =1)
28
  train_data = train_data.rename(columns = {'city_x':'city'})
29
  train_data = train_data.sort_values(by="date", ascending=True).reset_index(drop=True)
 
33
  y = X.pop("aqi_next_day")
34
  X = X.drop(columns =['city','conditions']).fillna(0)
35
 
36
+ today_data = X[1:8]
37
  y = model.predict(today_data)
38
 
39
  res = int(y[0])