10000 fix wrong assert in test_validation (#9480) · scikit-learn/scikit-learn@0dd19de · GitHub
[go: up one dir, main page]

Skip to content

Commit 0dd19de

Browse files
amuellerjnothman
authored andcommitted
fix wrong assert in test_validation (#9480)
1 parent 1674412 commit 0dd19de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sklearn/model_selection/tests/test_validation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -452,8 +452,8 @@ def check_cross_validate_multi_metric(clf, X, y, scores):
452452
assert type(cv_results['test_r2']) == np.ndarray
453453
assert (type(cv_results['test_neg_mean_squared_error']) ==
454454
np.ndarray)
455-
assert type(cv_results['fit_time'] == np.ndarray)
456-
assert type(cv_results['score_time'] == np.ndarray)
455+
assert type(cv_results['fit_time']) == np.ndarray
456+
assert type(cv_results['score_time']) == np.ndarray
457457

458458
# Ensure all the times are within sane limits
459459
assert np.all(cv_results['fit_time'] >= 0)

0 commit comments

Comments
 (0)
0