Hi #mlforecast,
I am new to mlforecast and trying to get feature importance for LGBM model in mlforecast but cant find any documentation.
The code looks like this. Has anyone done like this before ?
fcst = MLForecast(
models=[
lgb.LGBMRegressor(**model_params)],
#xgb.XGBRegressor(**model_params)],
freq='M',
# include 6 monthly lags
lags=[1,2,3,4,5,6],
# create a feature for year and month
date_features=['year','month'],
lag_transforms={
1: [expanding_mean, # add 1 period lag for the mean (expanding over the window)
(rolling_mean,3), # add 1 period lag for 3 month rolling mean
(rolling_mean,6), # add 1 period lag for 6 month rolling mean
]
},
target_transforms=[StandardScaler()], # transform to z-score normalized
)