8000 fixed random projection test · scikit-learn/scikit-learn@6782d59 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6782d59

Browse files
fixed random projection test
1 parent b166198 commit 6782d59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sklearn/tests/test_random_projection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ def test_sparse_random_projection_transformer_invalid_density():
211211
def test_random_projection_transformer_invalid_input():
212212
for RandomProjection in all_RandomProjection:
213213
assert_raises(ValueError,
214-
RandomProjection(n_components='auto').fit, [0, 1, 2])
214+
RandomProjection(n_components='auto').fit, [[0, 1, 2]])
215215

216216
assert_raises(ValueError,
217217
RandomProjection(n_components=-10).fit, data)

0 commit comments

Comments
 (0)
0