Skip to content

Is nonnegative hierarchical time series reconciliation implemented in sktime? #4645

Answered by fkiraly
elenagutiv asked this question in Q&A
Discussion options

You must be logged in to vote

hm, interesting question. The Reconciler or ReconcilerForecaster themselves do not have this.

The easiest way to get nonnegative forecasts are using the FunctionTransformer with the function lambda x: max(0, x) or similar, and using it in a pipeline after the ReconcilerForecaster, i.e., my_reconciler * FunctionTransformer(nonneg_fun)

This is not exactly the same as you describe, as this is after applying the reconciler, and the nixtla forecaster has this as a parameter of the method.

We're currently in the process of interfacing the nice nixtla libraries under consistent interfaces:
#4643
so, if you'd like to help by contributing an interface to the hierarchical forecasters (e.g., NixtlaR…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@fkiraly
Comment options

@elenagutiv
Comment options

Answer selected by elenagutiv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
module:forecasting forecasting module: forecasting, incl probabilistic and hierarchical forecasting
2 participants