{"issue":{"milestone":null,"user":{"id":694774,"login":"LuisBL","url":"https://api.github.com/users/LuisBL","gravatar_id":"4b5473ba24134e72d217f0381d125497","avatar_url":"https://secure.gravatar.com/avatar/4b5473ba24134e72d217f0381d125497?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"created_at":"2011-04-01T13:08:12Z","title":"ERROR: on test scikits.learn.pls.CCA","labels":[],"state":"open","updated_at":"2011-12-18T12:19:07Z","id":724163,"closed_at":null,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"html_url":"https://github.com/scikit-learn/scikit-learn/issues/115","body":"    ERROR: Doctest: scikits.learn.pls.CCA\n    ----------------------------------------------------------------------\n    Traceback (most recent call last):\n      File \"/usr/lib/python2.7/site-packages/nose/plugins/doctests.py\", line 395, in tearDown\n        delattr(__builtin__, self._result_var)\n    AttributeError: _\n    \n    ======================================================================\n    FAIL: scikits.learn.cluster.tests.test_spectral.test_spectral_clustering\n    ----------------------------------------------------------------------\n    Traceback (most recent call last):\n      File \"/usr/lib/python2.7/site-packages/nose/case.py\", line 187, in runTest\n        self.test(*self.arg)\n      File \"/home/luis/a/lib/python2.7/site-packages/scikits.learn-0.8_git-py2.7-linux-x86_64.egg/scikits/learn/cluster/tests/test_spectral.py\", line 29, in test_spectral_clustering\n        assert_equal(labels, [1, 1, 1, 0, 0, 0, 0])\n      File \"/usr/lib/python2.7/site-packages/numpy/testing/utils.py\", line 256, in assert_equal\n        return assert_array_equal(actual, desired, err_msg, verbose)\n      File \"/usr/lib/python2.7/site-packages/numpy/testing/utils.py\", line 686, in assert_array_equal\n        verbose=verbose, header='Arrays are not equal')\n      File \"/usr/lib/python2.7/site-packages/numpy/testing/utils.py\", line 618, in assert_array_compare\n        raise AssertionError(msg)\n    AssertionError: \n    Arrays are not equal\n    \n    (mismatch 14.2857142857%)\n     x: array([1, 1, 1, 1, 0, 0, 0])\n     y: array([1, 1, 1, 0, 0, 0, 0])\n    \n    ======================================================================\n    FAIL: Check that if a function has a side effect in its arguments, it\n    ----------------------------------------------------------------------\n    Traceback (most recent call last):\n      File \"/usr/lib/python2.7/site-packages/nose/case.py\", line 187, in runTest\n        self.test(*self.arg)\n      File \"/home/luis/a/lib/python2.7/site-packages/scikits.learn-0.8_git-py2.7-linux-x86_64.egg/scikits/learn/externals/joblib/test/test_memory.py\", line 291, in test_argument_change\n        assert func() == 0\n    AssertionError\n    \n    ======================================================================\n    FAIL: Doctest: scikits.learn.pls.CCA\n    ----------------------------------------------------------------------\n    Traceback (most recent call last):\n      File \"/usr/lib/python2.7/doctest.py\", line 2166, in runTest\n        raise self.failureException(self.format_failure(new.getvalue()))\n    AssertionError: Failed doctest test for scikits.learn.pls.CCA\n      File \"/home/luis/a/lib/python2.7/site-packages/scikits.learn-0.8_git-py2.7-linux-x86_64.egg/scikits/learn/pls.py\", line 598, in CCA\n    \n    ----------------------------------------------------------------------\n    File \"/home/luis/a/lib/python2.7/site-packages/scikits.learn-0.8_git-py2.7-linux-x86_64.egg/scikits/learn/pls.py\", line 674, in scikits.learn.pls.CCA\n    Failed example:\n        cca.fit(X, Y, n_components=2)\n    Exception raised:\n        Traceback (most recent call last):\n          File \"/usr/lib/python2.7/doctest.py\", line 1254, in __run\n            compileflags, 1) in test.globs\n          File \"<doctest scikits.learn.pls.CCA[4]>\", line 1, in <module>\n            cca.fit(X, Y, n_components=2)\n          File \"/home/luis/a/lib/python2.7/site-packages/scikits.learn-0.8_git-py2.7-linux-x86_64.egg/scikits/learn/pls.py\", line 298, in fit\n            linalg.inv(np.dot(self.x_loadings_.T, self.x_weights_)))\n          File \"/usr/lib/python2.7/site-packages/scipy/linalg/basic.py\", line 228, in inv\n            a1 = asarray_chkfinite(a)\n          File \"/usr/lib/python2.7/site-packages/numpy/lib/function_base.py\", line 547, in asarray_chkfinite\n            \"array must not contain infs or NaNs\")\n        ValueError: array must not contain infs or NaNs\n    ----------------------------------------------------------------------\n    File \"/home/luis/a/lib/python2.7/site-packages/scikits.learn-0.8_git-py2.7-linux-x86_64.egg/scikits/learn/pls.py\", line 677, in scikits.learn.pls.CCA\n    Failed example:\n        X_c, Y_c = cca.transform(X, Y)\n    Exception raised:\n        Traceback (most recent call last):\n          File \"/usr/lib/python2.7/doctest.py\", line 1254, in __run\n            compileflags, 1) in test.globs\n          File \"<doctest scikits.learn.pls.CCA[5]>\", line 1, in <module>\n            X_c, Y_c = cca.transform(X, Y)\n          File \"/home/luis/a/lib/python2.7/site-packages/scikits.learn-0.8_git-py2.7-linux-x86_64.egg/scikits/learn/pls.py\", line 350, in transform\n            x_scores = np.dot(Xc, self.x_rotations_)\n        AttributeError: 'CCA' object has no attribute 'x_rotations_'\n    \n    \n    ----------------------------------------------------------------------\n    Ran 655 tests in 30.347s\n    \n    FAILED (SKIP=2, errors=1, failures=3)\n    <nose.result.TextTestResult run=655 errors=1 failures=3>","number":115,"url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/115","comments":1,"assignee":null},"comment":{"user":{"id":161052,"login":"agramfort","url":"https://api.github.com/users/agramfort","gravatar_id":"e9758ca665b8c3d8cb3026c114d05833","avatar_url":"https://secure.gravatar.com/avatar/e9758ca665b8c3d8cb3026c114d05833?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"created_at":"2011-12-18T12:19:07Z","updated_at":"2011-12-18T12:19:07Z","id":3194419,"body":"is this fixed?","url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/comments/3194419"},"action":"created"}