File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change 14
14
from sklearn .linear_model import ElasticNet
15
15
from sklearn .metrics import pairwise_distances_argmin , v_measure_score
16
16
17
+ from sklearn .utils ._testing import assert_allclose
17
18
from sklearn .utils ._testing import assert_almost_equal
18
19
from sklearn .utils ._testing import assert_array_equal
19
20
from sklearn .utils ._testing import assert_array_almost_equal
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ def test_parameter_checking():
56
56
# TODO remove in 1.2
57
57
msg = "Invalid regularization parameter: got 'spam' instead of one of"
58
58
with pytest .raises (ValueError , match = msg ):
59
- NMF (regularization = name ).fit (A )
59
+ NMF (regularization = "spam" ).fit (A )
60
60
61
61
msg = "Invalid beta_loss parameter: solver 'cd' does not handle beta_loss = 1.0"
62
62
with pytest .raises (ValueError , match = msg ):
You can’t perform that action at this time.
0 commit comments