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 b2cf99f commit ac2d29dCopy full SHA for ac2d29d
sklearn/tests/test_common.py
@@ -111,8 +111,11 @@ def test_all_estimators():
111
assert_equal(len(args), len(defaults))
112
else:
113
continue
114
- for arg, default in zip(args[1:], defaults[1:]):
115
- assert_equal(params[arg], default)
+ for arg, default in zip(args, defaults):
+ if isinstance(params[arg], np.ndarray):
116
+ assert_array_equal(params[arg], default)
117
+ else:
118
+ assert_equal(params[arg], default)
119
120
121
def test_estimators_sparse_data():
0 commit comments