2012/1/23 Alejandro Weinstein <[email protected]>: > Hi: > > I am trying to install the latest version of scikit-learn (59db66...). > I cloned the repository, and typed 'make'. One of the unit tests is > failing: > > ====================================================================== > FAIL: sklearn.tests.test_multiclass.test_ovr_fit_predict > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "/usr/lib/pymodules/python2.7/nose/case.py", line 187, in runTest > self.test(*self.arg) > File "/home/ajw/local/scikit-learn/sklearn/tests/test_multiclass.py", > line 63, in test_ovr_fit_predict > assert_equal(np.mean(iris.target == pred), np.mean(iris.target == pred2)) > AssertionError: 0.97333333333333338 != 0.96666666666666667 > '0.97333333333333338 != 0.96666666666666667' = '%s != %s' % > (safe_repr(0.97333333333333338), safe_repr(0.96666666666666667)) > '0.97333333333333338 != 0.96666666666666667' = > self._formatMessage('0.97333333333333338 != 0.96666666666666667', > '0.97333333333333338 != 0.96666666666666667') >>> raise self.failureException('0.97333333333333338 != 0.96666666666666667') > > > I am running Ubuntu 11.10, Python 2.7, NumPy 1.6.1 and SciPy 0.10.0.
Tests are fine on numpy 1.5.1 and scipy 0.10.0: https://jenkins.shiningpanda.com/scikit-learn/job/python-2.7-numpy-1.5.1-scipy-0.10.0/ Maybe a 1.6.1 specific issue? If this is a rounding issue triggering a classification switch on the iris dataset I cannot see any "clean" fix for this issue. -- Olivier http://twitter.com/ogrisel - http://github.com/ogrisel ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ Scikit-learn-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
