diff --git a/ads/opctl/operator/lowcode/forecast/model/automlx.py b/ads/opctl/operator/lowcode/forecast/model/automlx.py index 56071a81f..eda6112b4 100644 --- a/ads/opctl/operator/lowcode/forecast/model/automlx.py +++ b/ads/opctl/operator/lowcode/forecast/model/automlx.py @@ -49,7 +49,7 @@ def set_kwargs(self): time_budget = model_kwargs_cleaned.pop("time_budget", -1) model_kwargs_cleaned[ "preprocessing" - ] = self.spec.preprocessing or model_kwargs_cleaned.get("preprocessing", True) + ] = self.spec.preprocessing.enabled or model_kwargs_cleaned.get("preprocessing", True) return model_kwargs_cleaned, time_budget def preprocess(self, data, series_id=None): # TODO: re-use self.le for explanations diff --git a/ads/opctl/operator/lowcode/forecast/model/forecast_datasets.py b/ads/opctl/operator/lowcode/forecast/model/forecast_datasets.py index 5a2a7c611..c3804f88d 100644 --- a/ads/opctl/operator/lowcode/forecast/model/forecast_datasets.py +++ b/ads/opctl/operator/lowcode/forecast/model/forecast_datasets.py @@ -68,7 +68,7 @@ def __init__(self, spec, historical_data): add_dates.sort() if historical_data.get_max_time() > add_dates[-spec.horizon]: raise DataMismatchError( - f"The Historical Data ends on {historical_data.get_max_time()}. The additional data horizon starts on {add_dates[-spec.horizon]}. The horizon should have exactly {spec.horizon} dates after the Hisotrical at a frequency of {historical_data.freq}" + f"The Historical Data ends on {historical_data.get_max_time()}. The additional data horizon starts on {add_dates[-spec.horizon]}. The horizon should have exactly {spec.horizon} dates after the Historical at a frequency of {historical_data.freq}" ) elif historical_data.get_max_time() != add_dates[-(spec.horizon + 1)]: raise DataMismatchError(