BottomUpReconciliator¶
- class BottomUpReconciliator(target_level: str, source_level: str)[source]¶
Bases:
etna.reconciliation.base.BaseReconciliator
Bottom-up reconciliation.
Create bottom-up reconciliator from
source_level
totarget_level
.- Parameters
target_level (str) – Level to be reconciled from the forecasts.
source_level (str) – Level to be forecasted.
- Inherited-members
Methods
aggregate
(ts)Aggregate the dataset to the
source_level
.fit
(ts)Fit the reconciliator parameters.
reconcile
(ts)Reconcile the forecasts in the dataset.
set_params
(**params)Return new object instance with modified parameters.
to_dict
()Collect all information about etna object in dict.
- fit(ts: etna.datasets.tsdataset.TSDataset) etna.reconciliation.bottom_up.BottomUpReconciliator [source]¶
Fit the reconciliator parameters.
- Parameters
ts (etna.datasets.tsdataset.TSDataset) – TSDataset on the level which is lower or equal to
target_level
,source_level
.- Returns
Fitted instance of reconciliator.
- Return type