Skip to content

Commit 2025e18

Browse files
authored
Ahosler patch 2 (#966)
2 parents 9b2a27e + 2d87903 commit 2025e18

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ads/opctl/operator/lowcode/forecast/model/automlx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def set_kwargs(self):
4949
time_budget = model_kwargs_cleaned.pop("time_budget", -1)
5050
model_kwargs_cleaned[
5151
"preprocessing"
52-
] = self.spec.preprocessing or model_kwargs_cleaned.get("preprocessing", True)
52+
] = self.spec.preprocessing.enabled or model_kwargs_cleaned.get("preprocessing", True)
5353
return model_kwargs_cleaned, time_budget
5454

5555
def preprocess(self, data, series_id=None): # TODO: re-use self.le for explanations

ads/opctl/operator/lowcode/forecast/model/forecast_datasets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def __init__(self, spec, historical_data):
6868
add_dates.sort()
6969
if historical_data.get_max_time() > add_dates[-spec.horizon]:
7070
raise DataMismatchError(
71-
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}"
71+
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}"
7272
)
7373
elif historical_data.get_max_time() != add_dates[-(spec.horizon + 1)]:
7474
raise DataMismatchError(

0 commit comments

Comments
 (0)