rahul bahadur
09/09/2024, 2:33 AMcontinuous-multioutput
predictions - essentially, allowing one to predict something of the shape (n_samples, n_outputs). Is there a possibility that this can be used to predict multi-horizon forecasts instead of the current recursive and multi-models (one for each horizon) strategy? @Nixtla TeamJosé Morales
09/09/2024, 3:31 PMrahul bahadur
09/09/2024, 3:39 PMMLForecast(models=[RandomForrestRegressor], freq=D, lag_features=['lag7', 'lag14', 'expanding_mean_lag1', 'rolling_mean_lag7_window_size28'], date_features=['dayofweek'], num_threads=1)
## fit the model
fcst.fit(series)
And then use this fitted model to generate predictions
predictions = fcst.predict(14)
predictions
RandomForrestRegressor offers a way to output an array instead of a single 'Y' value for each observation. I was wondering if that could be used instead of the current 2 alternatives of recursive and multiple models to generate forecasts.
That way, a single model can generate outputs for the forecast horizon and there would be no compounding of errors.
Let me know if that makes senseJosé Morales
09/09/2024, 3:40 PMJosé Morales
09/09/2024, 3:42 PMThis strategy consists of fitting one regressor per target
rahul bahadur
09/09/2024, 4:02 PMJosé Morales
09/09/2024, 5:03 PMrahul bahadur
09/09/2024, 5:04 PMrahul bahadur
09/09/2024, 5:04 PMJosé Morales
09/09/2024, 5:07 PMmax_horizon
?
```with fcst.ts._maybe_subset(None), fcst.ts._backup():
fcst.ts._predict_setup()
next_feats = fcst.ts._get_features_for_next_step()```I'm ok with implementing it, I just want to see if it really produces different (better) results
rahul bahadur
09/09/2024, 5:10 PM