When trying to update my model, I get the followin...
# mlforecast
j
When trying to update my model, I get the following. The question is: is there a way around? or is updating generally not possible when target transform is used?
~/miniconda3/envs/demand_env/lib/python3.8/site-packages/mlforecast/forecast.py in update(self, df)
*986*         df : pandas or polars DataFrame
*987*             Dataframe with new observations."""
--> 988         self.ts.update(df)
~/miniconda3/envs/demand_env/lib/python3.8/site-packages/mlforecast/core.py in update(self, df)
*849*         if new_groups.any():
*850*             if self.target_transforms is not None:
--> 851                 raise ValueError("Can not update target_transforms with new series.")
*852*             new_ids = ufp.filter_with_mask(sizes[self.id_col], new_groups)
*853*             new_ids_df = ufp.filter_with_mask(df, ufp.is_in(df[self.id_col], new_ids))
ValueError: Can not update target_transforms with new series.
j
Hey. It's possible to update target transformations, what's currently not supported is also including new (unseen) series in the update
j
true, i mis-read... sorry. stupid question... 🙂