Nixtla / mlforecast

Scalable machine 🤖 learning for time series forecasting.
https://nixtlaverse.nixtla.io/mlforecast
Apache License 2.0
860 stars 84 forks source link

[MLForecast] lag_transforms with different features packages #284

Closed Chaptyziok closed 9 months ago

Chaptyziok commented 9 months ago

Description

Currently only window_ops lagged features like rolling_mean or expanding_min can be added as lag_transforms to the model. The idea is to allow for use of tsfresh or tsfeatures inside of the lag_transforms.

Use case

No response

jmoralez commented 9 months ago

Hey @Chaptyziok, thanks for using mlforecast. Those libraries produce aggregations, how are you looking to use them? If you want to use the single value by serie that they produce you could join them with your dataframe and use them as static features.

Chaptyziok commented 9 months ago

@jmoralez Actually I want to create rolled features outside of the MLForecast, but I would like to pass them with lags. From what I know MLForecast uses recursive approach so they can also be predicted one step ahead and used as future features.

jmoralez commented 9 months ago

I see. I think you can do the same as in this guide.

Chaptyziok commented 9 months ago

@jmoralez Exactly, thank you for providing this guide.

jmoralez commented 9 months ago

Nice. Can we close this issue then?

Chaptyziok commented 9 months ago

@jmoralez Yes, please close this issue.