Nixtla / hierarchicalforecast

Probabilistic Hierarchical forecasting 👑 with statistical and econometric methods.
https://nixtlaverse.nixtla.io/hierarchicalforecast
Apache License 2.0
566 stars 69 forks source link

forecast_fitted_values() with neuralforecast estimators #179

Closed candalfigomoro closed 7 months ago

candalfigomoro commented 1 year ago

In this example https://nixtla.github.io/hierarchicalforecast/examples/australiandomestictourism.html#computing-base-forecasts

fcst = StatsForecast(df=Y_train_df, 
                     models=[ETS(season_length=4, model='ZZA')], 
                     freq='QS', n_jobs=-1)
Y_hat_df = fcst.forecast(h=8, fitted=True)
Y_fitted_df = fcst.forecast_fitted_values()

you call fcst.forecast_fitted_values(), however the forecast_fitted_values() method seems to be unavailable for neuralforecasts estimators such as NHITS and NBEATSx.

Moreover, it looks like using Y_df is not enough, see https://github.com/Nixtla/hierarchicalforecast/issues/162

How can we get the expected Y_fitted_df data with neuralforecast estimators? Thanks

jmoralez commented 8 months ago

Hey @candalfigomoro. We have an example on how to use neural and mlforecast estimators here. Can we close this issue?

github-actions[bot] commented 7 months ago

This issue has been automatically closed because it has been awaiting a response for too long. When you have time to to work with the maintainers to resolve this issue, please post a new comment and it will be re-opened. If the issue has been locked for editing by the time you return to it, please open a new issue and reference this one.