File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 7
7
8
8
from sklearn .utils .testing import assert_allclose
9
9
from sklearn .utils .testing import assert_allclose_dense_sparse
10
- from sklearn .utils .testing import assert_equal
11
10
from sklearn .utils .testing import assert_array_equal
12
11
from sklearn .utils .testing import assert_array_almost_equal
13
12
from sklearn .utils .testing import assert_false
@@ -66,10 +65,9 @@ def test_imputation_shape():
66
65
for strategy in ['mean' , 'median' , 'most_frequent' , "constant" ]:
67
66
imputer = SimpleImputer (strategy = strategy )
68
67
X_imputed = imputer .fit_transform (sparse .csr_matrix (X ))
69
- assert_equal ( X_imputed .shape , (10 , 2 ) )
68
+ assert X_imputed .shape == (10 , 2 )
70
69
X_imputed = imputer .fit_transform (X )
71
- assert_equal (X_imputed .shape , (10 , 2 ))
72
-
70
+ assert X_imputed .shape == (10 , 2 )
73
71
74
72
75
73
@pytest .mark .parametrize ("strategy" , ["const" , 101 , None ])
You can’t perform that action at this time.
0 commit comments