b22ee075 commited on
Commit
d7eb9cb
·
verified ·
1 Parent(s): 2c4cd2e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- # 'CatBoost': cb.CatBoostRegressor(verbose=0),
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=(28, 14))
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():