BaseReconciliator¶
- class BaseReconciliator(target_level: str, source_level: str)[source]¶
Bases:
abc.ABC,etna.core.mixins.BaseMixinBase class to hold reconciliation methods.
Init BaseReconciliator.
- 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.
to_dict()Collect all information about etna object in dict.
- aggregate(ts: etna.datasets.tsdataset.TSDataset) etna.datasets.tsdataset.TSDataset[source]¶
Aggregate the dataset to the
source_level.- Parameters
ts (etna.datasets.tsdataset.TSDataset) – TSDataset on the level which is lower or equal to
source_level.- Returns
TSDataset on the
source_level.- Return type
- abstract fit(ts: etna.datasets.tsdataset.TSDataset) etna.reconciliation.base.BaseReconciliator[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
- reconcile(ts: etna.datasets.tsdataset.TSDataset) etna.datasets.tsdataset.TSDataset[source]¶
Reconcile the forecasts in the dataset.
- Parameters
ts (etna.datasets.tsdataset.TSDataset) – TSDataset on the
source_level.- Returns
TSDataset on the
target_level.- Return type