Andreas Kaae
04/08/2024, 12:46 PMhyperopt
in combination with MLForecast
?
I have tried doing some smaller experiments using hyperopt
but it fails as the library does not have access to the loss function.Tyler Blume
04/08/2024, 2:08 PMcv_results = fcst.cross_validation(
train_df,
n_windows=6,
h=12,
step_size=2,
)
cv_results['id_cutoff'] = cv_results['unique_id'] + '_' + cv_results['cutoff'].astype(str)
score = loss(cv_results, models=['LGBMRegressor'], id_col='id_cutoff')['LGBMRegressor'].mean()
Tyler Blume
04/08/2024, 2:09 PMfrom utilsforecast.losses import rmse, mae, mse, mae, smape
just replace loss with one of thoseTyler Blume
04/08/2024, 2:10 PMJosé Morales
04/11/2024, 12:45 AMAndreas Kaae
04/16/2024, 6:40 AM