Skip to content

FastICA unit test fails at random #1349

@erg

Description

@erg
FAIL: Test the FastICA algorithm on very simple data.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/nose-1.2.1-py2.7.egg/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/home/erg/python/scikit-learn/sklearn/decomposition/tests/test_fastica.py", line 100, in test_fastica
    assert_almost_equal(np.dot(s1_, s1) / n_samples, 1, decimal=2)
  File "/usr/lib/python2.7/site-packages/numpy/testing/utils.py", line 468, in assert_almost_equal
    raise AssertionError(msg)
AssertionError: 
Arrays are not almost equal to 2 decimals
 ACTUAL: 0.99476064813705389
 DESIRED: 1
>>  raise AssertionError('\nArrays are not almost equal to 2 decimals\n ACTUAL: 0.99476064813705389\n DESIRED: 1')

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions