Skip to content

Commit d6061b7

Browse files
committed
add case to test data
1 parent e8b3144 commit d6061b7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/hyperactive/experiment/integrations/sklearn_cv.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Experiment adapter for sklearn cross-validation experiments."""
2+
23
# copyright: hyperactive developers, MIT License (see LICENSE file)
34

45
from sklearn import clone
@@ -215,7 +216,7 @@ def get_test_params(cls, parameter_set="default"):
215216
X, y = load_diabetes(return_X_y=True)
216217
params_regress = {
217218
"estimator": SVR(),
218-
"scoring": mean_absolute_error,
219+
"scoring": "neg_mean_absolute_error",
219220
"cv": 2,
220221
"X": X,
221222
"y": y,

0 commit comments

Comments
 (0)