File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
sklearn/cross_decomposition/tests Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -358,13 +358,13 @@ def test_scale_and_stability():
358
358
X_score , Y_score = clf .fit_transform (X , Y )
359
359
clf .set_params (scale = False )
360
360
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 )
363
363
# Scaling should be idempotent
364
364
clf .set_params (scale = True )
365
365
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 )
368
368
369
369
370
370
def test_pls_errors ():
You can’t perform that action at this time.
0 commit comments