Skip to content

Commit e8602bc

Browse files
thomasjpfanjnothman
authored andcommitted
TST Sets decimal
1 parent e833c92 commit e8602bc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sklearn/cross_decomposition/tests/test_pls.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -358,13 +358,13 @@ def test_scale_and_stability():
358358
X_score, Y_score = clf.fit_transform(X, Y)
359359
clf.set_params(scale=False)
360360
X_s_score, Y_s_score = clf.fit_transform(X_s, Y_s)
361-
assert_array_almost_equal(X_s_score, X_score)
362-
assert_array_almost_equal(Y_s_score, Y_score)
361+
assert_array_almost_equal(X_s_score, X_score, decimal=4)
362+
assert_array_almost_equal(Y_s_score, Y_score, decimal=4)
363363
# Scaling should be idempotent
364364
clf.set_params(scale=True)
365365
X_score, Y_score = clf.fit_transform(X_s, Y_s)
366-
assert_array_almost_equal(X_s_score, X_score)
367-
assert_array_almost_equal(Y_s_score, Y_score)
366+
assert_array_almost_equal(X_s_score, X_score, decimal=4)
367+
assert_array_almost_equal(Y_s_score, Y_score, decimal=4)
368368

369369

370370
def test_pls_errors():

0 commit comments

Comments
 (0)