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
Enhance TSDataset to handle the dataset with hierarchical structure
Proposal
Edit the constructor of TSDataset
def __init__(
self,
....,
hierarchical_structure: Optional[HierarchicalStructure] = None
) -> TSDataset:
"""
df_exog:
Dataframe with exogenous data; If hierarchy is passed should be the dataframe of the target level, which will be forecasted
hierarchical_structure:
Structure of the levels in the hierarchy. If None, there is no hierarchical structure in the dataset.
"""
Add attribute current_level: str -- get it from the structure, it can be obtained by the segments in df
In the constructor and make_future method merge exog into target only if they are on the same hierarchical level, in the other case do't merge it. If there is no hierarchy in the dataset this methods should fail in case of inconsistency between df and df_exog
🚀 Feature Request
Enhance
TSDataset
to handle the dataset with hierarchical structureProposal
current_level: str
-- get it from the structure, it can be obtained by the segments indf
make_future
method merge exog into target only if they are on the same hierarchical level, in the other case do't merge it. If there is no hierarchy in the dataset this methods should fail in case of inconsistency between df and df_exoghierarchy
Test cases
Additional context
No response
The text was updated successfully, but these errors were encountered: