Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -40,7 +40,7 @@ def train_predict(symbol, start_date, end_date, forecast_days):
|
|
| 40 |
models = {
|
| 41 |
'XGBoost': xgb.XGBRegressor(),
|
| 42 |
'LightGBM': lgb.LGBMRegressor(),
|
| 43 |
-
|
| 44 |
'HistGradientBoosting': HistGradientBoostingRegressor()
|
| 45 |
}
|
| 46 |
|
|
@@ -79,7 +79,7 @@ def plot_results(df, end_date, forecast_days, results):
|
|
| 79 |
plt.close()
|
| 80 |
|
| 81 |
# Plot future predictions
|
| 82 |
-
plt.figure(figsize=(
|
| 83 |
future_dates = [end_date + timedelta(days=i) for i in range(1, forecast_days + 1)]
|
| 84 |
|
| 85 |
for model, result in results.items():
|
|
|
|
| 40 |
models = {
|
| 41 |
'XGBoost': xgb.XGBRegressor(),
|
| 42 |
'LightGBM': lgb.LGBMRegressor(),
|
| 43 |
+
'CatBoost': catboost.CatBoostRegressor(verbose=0),
|
| 44 |
'HistGradientBoosting': HistGradientBoostingRegressor()
|
| 45 |
}
|
| 46 |
|
|
|
|
| 79 |
plt.close()
|
| 80 |
|
| 81 |
# Plot future predictions
|
| 82 |
+
plt.figure(figsize=(14, 7))
|
| 83 |
future_dates = [end_date + timedelta(days=i) for i in range(1, forecast_days + 1)]
|
| 84 |
|
| 85 |
for model, result in results.items():
|