Commit 16ce452b authored by Benjamin Murauer's avatar Benjamin Murauer
Browse files

removed check in the custom cv grid evaluator that check for a 'split' field,...

removed check in the custom cv grid evaluator that check for a 'split' field, as the CV parameter of the GridSearchCV can also be an explicit list of indices.
parent 7e89a972
Pipeline #46236 passed with stage
in 2 minutes and 51 seconds
......@@ -199,10 +199,6 @@ class CustomCvGridEvaluator(GridEvaluator):
"""
assert len(data) == 3
x, y, cv = data
if not hasattr(cv, 'split'):
raise Exception(f'the submitted cv {cv} does not support split()')
self.grid_parameters['cv'] = cv
return super().evaluate(model, (x, y))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment