Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ads/opctl/operator/lowcode/forecast/model/automlx.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down