8000 Changed assert_array_equal() in Line 45 and 46 to assert_array_almost… · mohitsingh1007/scikit-learn@921dead · GitHub
[go: up one dir, main page]

Skip to content

Commit 921dead

Browse files
committed
Changed assert_array_equal() in Line 45 and 46 to assert_array_almost_equal(,,decimal=5). This has fixed the AssertionError, which occurs during the installation test.
1 parent d4f66a0 commit 921dead

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sklearn/feature_selection/tests/test_feature_select.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ def test_f_oneway_ints():
4242

4343
# test that is gives the same result as with float
4444
f, p = f_oneway(X.astype(np.float), y)
45-
assert_array_equal(f, fint)
46-
assert_array_equal(p, pint)
45+
assert_array_almost_equal(f, fint, decimal=5)
46+
assert_array_almost_equal(p, pint, decimal=5)
4747

4848

4949
def test_f_classif():

0 commit comments

Comments
 (0)
0