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 89afb3d commit 4f6115fCopy full SHA for 4f6115f
1 file changed
tests/test_runs/test_run_functions.py
@@ -159,7 +159,13 @@ def test_run_and_upload(self):
159
for clf in clfs:
160
run = self._perform_run(task_id, num_test_instances, clf)
161
if isinstance(clf, BaseSearchCV):
162
- self.assertEqual(len(run.trace_content), num_iterations * num_folds)
+ if isinstance(clf, GridSearchCV):
163
+ grid_iterations = 1
164
+ for param in clf.param_grid:
165
+ grid_iterations *= len(clf.param_grid[param])
166
+ self.assertEqual(len(run.trace_content), grid_iterations * num_folds)
167
+ else:
168
+ self.assertEqual(len(run.trace_content), num_iterations * num_folds)
169
check_res = self._check_serialized_optimized_run(run.run_id)
170
self.assertTrue(check_res)
171
0 commit comments