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
Now TSDataset handles regressors/exogs according to theirs column name prefixes. In this issue we want to fix it: now user should add info about regressor nature of data in df_exog.
Motivation
New way of work with regressors.
Proposal
Add TSDataset.__init__ argument known_future:
def __init__(self, df: pd.DataFrame, freq: str, df_exog: Optional[pd.DataFrame] = None, known_future: Optional[List[str]] = None):
"""Init TSDataset.
Parameters
----------
df:
dataframe with timeseries
freq:
frequency of timestamp in df
df_exog:
dataframe with exogenous data;
if the series is known in the future features' names should start with prefix 'regressor_`.
known_future:
series from columns in df_exog[known_future] are regressors; if None given, all the given in df_exog series are not regressors
"""
🚀 Feature Request
Now TSDataset handles regressors/exogs according to theirs column name prefixes. In this issue we want to fix it: now user should add info about regressor nature of data in df_exog.
Motivation
New way of work with regressors.
Proposal
TSDataset.__init__
argumentknown_future
:_update_regressors
in__init__
with new logic:known_future
should be added toself._regressors
_check_regressors
:self._regressor
Test cases
Update existing cases with new logic
Alternatives
No response
Additional context
No response
Checklist
The text was updated successfully, but these errors were encountered: