Skip to content

Commit

Permalink
TST Sets decimal
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasjpfan authored and jnothman committed May 23, 2019
1 parent e833c92 commit e8602bc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sklearn/cross_decomposition/tests/test_pls.py
Expand Up @@ -358,13 +358,13 @@ def test_scale_and_stability():
X_score, Y_score = clf.fit_transform(X, Y)
clf.set_params(scale=False)
X_s_score, Y_s_score = clf.fit_transform(X_s, Y_s)
assert_array_almost_equal(X_s_score, X_score)
assert_array_almost_equal(Y_s_score, Y_score)
assert_array_almost_equal(X_s_score, X_score, decimal=4)
assert_array_almost_equal(Y_s_score, Y_score, decimal=4)
# Scaling should be idempotent
clf.set_params(scale=True)
X_score, Y_score = clf.fit_transform(X_s, Y_s)
assert_array_almost_equal(X_s_score, X_score)
assert_array_almost_equal(Y_s_score, Y_score)
assert_array_almost_equal(X_s_score, X_score, decimal=4)
assert_array_almost_equal(Y_s_score, Y_score, decimal=4)


def test_pls_errors():
Expand Down

0 comments on commit e8602bc

Please sign in to comment.