You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class BaseReconciler(ABC, BaseMixin):
def __init__(self, target_level: str, source_level: str):
"""
target_level: level to be reconciled from the forecasts
source_level: level to be forecasted
"""
self.mapping_matrix: Optional[scipy.sparse.base.spmatrix]
🚀 Feature Request
Create class to perform forecast reconcilation
Proposal
Create class:
fit(self, ts: TSDataset) -> "BaseReconciler"
target_level
,source_level
source_level
mapping_matrix
) -- will differs in childrenaggregate(self, ts: TSDataset) -> "TSDataset"
source_level
source_level
reconcile(self, ts: TSDataset) -> TSDataset:
source_level
ts
usingmapping_matrix
to thetarget_level
Test cases
aggregate
work correctly for differentsource_level
(lower/equal/greater than level of ts)reconcile
works correctly for top_down/bottom_up mapping matrixes and different level of input ts(lower/equal/greater thansource_level
)Additional context
No response
The text was updated successfully, but these errors were encountered: