We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 265b034 commit 3aea218Copy full SHA for 3aea218
1 file changed
tests/test_runs/test_run_functions.py
@@ -41,7 +41,7 @@ def test_run_regression_on_classif_task(self):
41
42
clf = LinearRegression()
43
task = openml.tasks.get_task(task_id)
44
- self.assertRaises(openml.exceptions.PyOpenMLError, openml.runs.run_task,
+ self.assertRaises(openml.exceptions.AttributeError, openml.runs.run_task,
45
task=task, model=clf, avoid_duplicate_runs=False)
46
47
@mock.patch('openml.flows.sklearn_to_flow')
@@ -83,6 +83,7 @@ def test_run_optimize_randomforest_iris(self):
83
n_iter=num_iterations)
84
85
run = self._perform_run(task_id, num_instances, random_search)
86
+ print(run.trace_content)
87
self.assertEqual(len(run.trace_content), num_iterations * num_folds)
88
89
def test_run_optimize_bagging_iris(self):
0 commit comments