Skip to content

Commit 53c8038

Browse files
fixes after rebase
Signed-off-by: Mateusz Switala <mswitala@redhat.com> Assisted-by: Claude Code
1 parent 4263874 commit 53c8038

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

components/training/automl/autogluon_timeseries_models_training/component.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,15 +80,15 @@ def autogluon_timeseries_models_training(
8080
logger = logging.getLogger(__name__)
8181

8282
from kfp_components.components.training.automl.shared.back_testing import build_back_testing_json
83-
from kfp_components.components.training.automl.shared.component_status import ComponentStatusTracker
84-
from kfp_components.components.training.automl.shared.run_status import shared_automl_dir
8583
from kfp_components.components.training.automl.shared.timeseries_notebook_utils import (
8684
build_predict_sample_artifact,
8785
)
8886

8987
status = ComponentStatusTracker(component_status.path, "autogluon_timeseries_models_training")
9088
with status:
9189
TOP_N_MAX = 7
90+
DEFAULT_PRESETS = "fast_training"
91+
DEFAULT_TIME_LIMIT = 600 # 10 minutes
9292

9393
# Input validation
9494
for param, value in (

components/training/automl/autogluon_timeseries_models_training/tests/test_component_unit.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,8 @@ def test_custom_eval_metric_passed_to_predictors_and_returned(
650650
mock_refit_predictor.evaluate.return_value = {"WQL": 0.3, "MASE": 0.5}
651651

652652
mock_predictor_cls.side_effect = [mock_predictor, mock_refit_predictor]
653-
mock_ts_df_cls.from_data_frame.side_effect = [_mock_ts_df(), _mock_ts_df()]
653+
# from_data_frame: train, test, and once per model in build_predict_sample_artifact (1 model)
654+
mock_ts_df_cls.from_data_frame.side_effect = [_mock_ts_df(), _mock_ts_df(), _mock_ts_df()]
654655
mock_ts_df_cls.from_path.return_value = _mock_ts_df()
655656
mock_ts_df_cls.return_value = _mock_ts_df()
656657
mock_concat.return_value = mock.MagicMock()

0 commit comments

Comments
 (0)