Spaces:
Sleeping
Sleeping
fixing typos
Browse files
app.py
CHANGED
|
@@ -148,7 +148,8 @@ def predict_volatility(date):
|
|
| 148 |
|
| 149 |
|
| 150 |
# ---------------- NOWCASTING ----------------
|
| 151 |
-
X_xgb = df.iloc[-1:][
|
|
|
|
| 152 |
X_ngb = df.iloc[-1:][ngb_features]
|
| 153 |
|
| 154 |
point = xgb_model.predict(X_xgb)[0]
|
|
|
|
| 148 |
|
| 149 |
|
| 150 |
# ---------------- NOWCASTING ----------------
|
| 151 |
+
X_xgb = df.iloc[-1:][xgb_model.get_booster().feature_names]
|
| 152 |
+
#X_xgb = df.iloc[-1:][xgb_features]
|
| 153 |
X_ngb = df.iloc[-1:][ngb_features]
|
| 154 |
|
| 155 |
point = xgb_model.predict(X_xgb)[0]
|