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
if self._target_componets is not initialized return None
Return dataframe with self._target_componets if exists
In methods tsdataset_idx_slice, train_test_split, get_level_dataset copy self._target_components to the new datasets
In the end of make_future reset self._target_components to None
In drop_features throw error if user tries to drop some of the components and don't drop them
Test cases
Test that get_target_components works correctly
Return None if self._target_components not initialized
Return dataframe with correct columns in the other case
Test that add_target_components
Raise error in case of inconsistent set of components, initialized self._target_components, components don't sum up to target
Store component names in self.target_components
Store components in self.df
Check that components are copied to the new datasets in tsdataset_idx_slice, train_test_split, get_level_dataset
Check that make_furture reset self._target_components attribute
Check that drop_features throw error in case of trying to drop the components
Additional context
There should be only one set of components. We add it via add_target_components and can't modify this set anymore. If components present in the dataset, they are consistent with target.
The text was updated successfully, but these errors were encountered:
🚀 Feature Request
Meta-data about forecast components should be stored in the TSDataset and updated via it's interface.
Proposal
self._target_components
is not initialized yet, in the other case throw errorself._target_components
df
withself.df
self._target_componets
is not initialized returnNone
self._target_componets
if existstsdataset_idx_slice
,train_test_split
,get_level_dataset
copyself._target_components
to the new datasetsmake_future
resetself._target_components
to Nonedrop_features
throw error if user tries to drop some of the components and don't drop themTest cases
get_target_components
works correctlyNone
ifself._target_components
not initializedadd_target_components
self._target_components
, components don't sum up to targetself.target_components
self.df
tsdataset_idx_slice
,train_test_split
,get_level_dataset
make_furture
resetself._target_components
attributedrop_features
throw error in case of trying to drop the componentsAdditional context
There should be only one set of components. We add it via
add_target_components
and can't modify this set anymore. If components present in the dataset, they are consistent with target.The text was updated successfully, but these errors were encountered: