Skip to content

Test failures with NumPy 1.13 #9094

Closed
Closed
@jakirkham

Description

@jakirkham

Ran into some test failures when building on CentOS 6 with Python 2.7 and NumPy 1.13. Presumably will see the same issues with other Python versions and maybe OSes as well. Though will follow-up on that. In the detail below are the test failures and a link to the build log. This was part of the conda-forge build in PR ( conda-forge/scikit-learn-feedstock#47 ).

======================================================================
FAIL: sklearn.gaussian_process.tests.test_kernels.test_kernel_diag
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/feedstock_root/build_artefacts/scikit-learn_1497021226636/_t_env/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/feedstock_root/build_artefacts/scikit-learn_1497021226636/_t_env/lib/python2.7/site-packages/sklearn/gaussian_process/tests/test_kernels.py", line 142, in test_kernel_diag
    assert_almost_equal(K_call_diag, K_diag, 5)
  File "/feedstock_root/build_artefacts/scikit-learn_1497021226636/_t_env/lib/python2.7/site-packages/numpy/testing/utils.py", line 563, in assert_almost_equal
    return assert_array_almost_equal(actual, desired, decimal, err_msg)
  File "/feedstock_root/build_artefacts/scikit-learn_1497021226636/_t_env/lib/python2.7/site-packages/numpy/testing/utils.py", line 962, in assert_array_almost_equal
    precision=decimal)
  File "/feedstock_root/build_artefacts/scikit-learn_1497021226636/_t_env/lib/python2.7/site-packages/numpy/testing/utils.py", line 715, in assert_array_compare
    raise AssertionError(msg)
AssertionError: 
Arrays are not almost equal to 5 decimals

(shapes (5,), (5, 1) mismatch)
 x: array([  2.84495e+06,   1.71974e+07,   7.08257e+06,   6.79164e+04,
         6.60218e+02])
 y: array([[  2.84495e+06],
       [  1.71974e+07],
       [  7.08257e+06],...

======================================================================
FAIL: sklearn.model_selection.tests.test_split.test_cv_iterable_wrapper
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/feedstock_root/build_artefacts/scikit-learn_1497021226636/_t_env/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/feedstock_root/build_artefacts/scikit-learn_1497021226636/_t_env/lib/python2.7/site-packages/sklearn/model_selection/tests/test_split.py", line 1032, in test_cv_iterable_wrapper
    list(kf_iter_wrapped.split(X, y)))
  File "/feedstock_root/build_artefacts/scikit-learn_1497021226636/_t_env/lib/python2.7/site-packages/numpy/testing/utils.py", line 854, in assert_array_equal
    verbose=verbose, header='Arrays are not equal')
  File "/feedstock_root/build_artefacts/scikit-learn_1497021226636/_t_env/lib/python2.7/site-packages/numpy/testing/utils.py", line 778, in assert_array_compare
    raise AssertionError(msg)
AssertionError: 
Arrays are not equal

(mismatch 100.0%)
 x: array([[array([2, 3, 4, 5, 6, 7, 8, 9]), array([0, 1])],
       [array([0, 1, 4, 5, 6, 7, 8, 9]), array([2, 3])],
       [array([0, 1, 2, 3, 6, 7, 8, 9]), array([4, 5])],...
 y: array([[array([2, 3, 4, 5, 6, 7, 8, 9]), array([0, 1])],
       [array([0, 1, 4, 5, 6, 7, 8, 9]), array([2, 3])],
       [array([0, 1, 2, 3, 6, 7, 8, 9]), array([4, 5])],...

----------------------------------------------------------------------
Ran 7159 tests in 2053.577s

FAILED (SKIP=21, failures=2)

ref: https://circleci.com/api/v1.1/project/github/conda-forge/scikit-learn-feedstock/117/output/13/0?file=true

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions