Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
reduce fit_pipeline accuracy check
  • Loading branch information
ravinkohli committed Jan 12, 2022
commit d6874e1cdcbd91f512a07f18915ad4772c1e8575
6 changes: 3 additions & 3 deletions test/test_api/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@ def test_pipeline_fit(openml_id,

score = accuracy(dataset.test_tensors[1], preds)
assert isinstance(score, float)
assert score > 0.7
assert score > 0.65
else:
assert isinstance(pipeline, BasePipeline)
# To make sure we fitted the model, there should be a
Expand All @@ -721,10 +721,10 @@ def test_pipeline_fit(openml_id,

score = accuracy(dataset.test_tensors[1], preds)
assert isinstance(score, float)
assert score > 0.7
assert score > 0.65
else:
assert pipeline is None
assert run_value.cost < 0.3
assert run_value.cost < 0.35

# Make sure that the pipeline can be pickled
dump_file = os.path.join(tempfile.gettempdir(), 'automl.dump.pkl')
Expand Down