Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kasyanovse committed Aug 14, 2023
1 parent 65e5990 commit e3da922
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/unit/data/test_data_split.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ def test_data_splitting_defines_validation_blocks_correctly(forecast_length, cv_
check_cv_folds, check_split_ratio,
check_validation_blocks):
""" Checks if validation blocks count defines correctly for different data """
data = get_ts_data_to_forecast(forecast_length)
data = get_ts_data_to_forecast(forecast_length, 120)
data_source_splitter = DataSourceSplitter(cv_folds=cv_folds, split_ratio=split_ratio)
data_source_splitter.build(data)
assert data_source_splitter.cv_folds == check_cv_folds
Expand Down
4 changes: 2 additions & 2 deletions test/unit/optimizer/test_pipeline_objective_eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ def test_pipeline_objective_evaluate_with_different_metrics(classification_datas
)
def test_pipeline_objective_evaluate_with_different_metrics_with_str_labes(pipeline):
for metric in ClassificationMetricsEnum:
one_fold_split = OneFoldInputDataSplit()
data_split = partial(one_fold_split.input_split, input_data=classification_dataset_with_str_labels())
data_splitter = DataSourceSplitter()
data_split = data_splitter.build(classification_dataset_with_str_labels())
check_pipeline = deepcopy(pipeline)
objective_eval = PipelineObjectiveEvaluate(MetricsObjective(metric), data_split)
fitness = objective_eval(pipeline)
Expand Down

0 comments on commit e3da922

Please sign in to comment.