Skip to content

Commit

Permalink
change api_predict_correct train_data
Browse files Browse the repository at this point in the history
  • Loading branch information
IIaKyJIuH committed Oct 9, 2023
1 parent 2791288 commit 9434106
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/integration/api/test_main_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def data_with_binary_features_and_categorical_target():

@pytest.mark.parametrize('task_type, metric_name', [
('classification', 'f1'),
('regression', 'rmse'),
('regression', 'rmse')
])
def test_api_predict_correct(task_type, metric_name):
train_data, test_data, _ = get_dataset(task_type)
Expand All @@ -167,7 +167,7 @@ def test_api_predict_correct(task_type, metric_name):
# composing and tuning was applied
assert model.history is not None
assert model.history.tuning_result is not None
assert is_predict_ignores_target(model.predict, train_data, 'features')
assert is_predict_ignores_target(model.predict, model.train_data, 'features')


@pytest.mark.parametrize('task_type, metric_name, pred_model', [
Expand Down

0 comments on commit 9434106

Please sign in to comment.