-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error on HolidayTransformer since 0.6.12 #242
Comments
I did make some changes to the anomaly detector but not to the methods used here. The following code using that transformer works fine for me: import pandas as pd
from autots import load_daily, GeneralTransformer
df = load_daily(long=False)
transformer = GeneralTransformer(
fillna='ffill',
transformations={"0": "HolidayTransformer"},
transformation_params={
'0': {
'threshold': 0.9, 'splash_threshold': None,
'use_dayofmonth_holidays': True, 'use_wkdom_holidays': True,
'use_wkdeom_holidays': False, 'use_lunar_holidays': False,
'use_lunar_weekday': False, 'use_islamic_holidays': False,
'use_hebrew_holidays': False,
'anomaly_detector_params': {
'method': 'IQR',
'method_params': {
'iqr_threshold': 2.0, 'iqr_quantiles': [0.25, 0.75]},
'fillna': 'ffill',
'transform_dict': {
'fillna': 'pchip',
'transformations': {'0': 'AlignLastValue'},
'transformation_params': {'0': {'rows': 1, 'lag': 2, 'method': 'additive', 'strength': 1.0, 'first_value_only': False}}},
'isolated_only': True
},
'remove_excess_anomalies': True,
'impact': 'datepart_regression',
'regression_params': {
'regression_model': {
'model': 'DecisionTree',
'model_params': {'max_depth': None, 'min_samples_split': 1.0}},
'datepart_method': 'simple_2',
'polynomial_degree': None,
'transform_dict': None,
'holiday_countries_used': False}
}, '1': {}}
)
transformed_df = transformer.fit_transform(df)
inverse_df = transformer.inverse_transform(transformed_df)
col = df.columns[0]
pd.concat([df[col], transformed_df[col].rename("transformed"), inverse_df[col].rename("inverse")], axis=1).plot() do you have full details on the model? maybe it was a different parameter? You might also have something new in your data (new nulls, something?) that are causing the failure? |
Thank you for the super quick reply. Here are the full model details on which the error occurs:
Some new NaN values are present in the new data on prediction. Could that be the cause of this error? In that case, would defining values for |
Hi Colin,
Since the update to AutoTS 0.6.12 I'm getting this error while forecasting on existing models that were working fine before:
Was this transformer updated/modified in the last update and is there any chance a bug arose from that or is this more likely a problem on my end?
Thanks for your reply in advance.
The text was updated successfully, but these errors were encountered: