sktime: [ENH] Extending Reconciler to include methods which use the sample covariance of base forecast errors
@ciaran-g, I would like to use mint_cov and wls_var methods to reconcile existing base forecasts in a hierachical setup. Reconciler currently only allows the methods bu, ols, wls_str, and td_fcst, none of which are based on the sample covariance of the base forecast errors (since these errors are not available to Reconciler).
A solution to this could be to add a second argument to Reconciler’s fit_transform method - for the errors of the base forecasts. Namely, Reconciler().fit_transform(preds, errors). Then the base forecasts could be reconciled using any of the methods that are available to ReconcilerForecaster.
This would give freedom to developers to use any custom base forecasts in their hierachical setups, without having to give up on the best methods such as mint_cov and wls_var. Thanks!
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 20 (1 by maintainers)
To give my final feedback on this issue: the new forecaster
ForecastKnownValuessolves my problem, that is, I can use it withinReconcilerForecaster(as described above) to reconcile any given set of base forecasts in a hierachical setup, using any of the reconciliation methods available inReconcilerForecaster.The advantage of this approach is that more reconciliation methods are available compared to ‘Reconciler’.
@fkiraly, there are so many levels before reaching this one 😄
ok, I’ll try to implement
ForecastKnownValuesthen, maybe @ciaran-g also has a good idea.You could use the
HierarchyEnsembleForecasterfor that, recently added by @VyomkeshVyas. This allows you to use different forecasters for different levels or nodes at a hierarchy.So, you could implement the separate strategies for A, B, C as three different forecasters, then stick them in
HierarchyEnsembleForecaster. That would also allow you later to rearrange them more flexibly, e.g., if you decide to use C for different levels, or add a strategy D.