Hi,
When running `nosetests sklearn --exe` with the latest version of
`sklearn`, I run into three errors, and I can't figure out where they come
from:
$ nosetests sklearn --exe
1
.............................................................../home/jacob04/.my_python_packages/lib/python2.7/site-packages/sklearn/manifold/spectral_embe
dding.py:225: UserWarning: Graph is not fully connected, spectral
embedding may not works as expected.
warnings.warn("Graph is not fully connected, spectral embedding"
...........SS....................................................................S.........................................................S................
.........................SSSF...................../home/jacob04/.my_python_packages/lib/python2.7/site-packages/sklearn/externals/joblib/test/test_func_ins
pect.py:122: UserWarning: Cannot inspect object <functools.partial
object at 0x10add730>, ignore list will not work.
nose.tools.assert_equal(filter_args(ff, ['y'], (1, )),
............................................................................................................................................................
............................................................................................................................................................
.............................................................S..............................................................................................
............................................................................................................................................................
............................................................................................................................................................
..........................................................................E.......................................................................SSS....S..
..S..................................................................................E...............................................
======================================================================
ERROR: Split arrays or matrices into random train and test subsets
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/home/jacob04/opt/python/virtualenvs/work/lib/python2.7/site-packages/nose/case.py",
line 197, in runTest
self.test(*self.arg)
File
"/home/jacob04/opt/python/virtualenvs/work/lib/python2.7/site-packages/nose/util.py",
line 613, in newfunc
return func(*arg, **kw)
File
"/home/jacob04/.my_python_packages/lib/python2.7/site-packages/sklearn/cross_validation.py",
line 1349, in train_test_split
raise ValueError("At least one array required as input")
ValueError: At least one array required as input
======================================================================
ERROR: sklearn.tests.test_pls.test_scale
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/home/jacob04/opt/python/virtualenvs/work/lib/python2.7/site-packages/nose/case.py",
line 197, in runTest
self.test(*self.arg)
File
"/home/jacob04/.my_python_packages/lib/python2.7/site-packages/sklearn/tests/test_pls.py",
line 235, in test_scale
clf.fit(X, Y)
File
"/home/jacob04/.my_python_packages/lib/python2.7/site-packages/sklearn/pls.py",
line 320, in fit
linalg.inv(np.dot(self.x_loadings_.T, self.x_weights_)))
File
"/home/jacob04/opt/python/scipy/scipy-0.12.0/lib/python2.7/site-packages/scipy/linalg/basic.py",
line 380, in inv
raise LinAlgError("singular matrix")
LinAlgError: singular matrix
======================================================================
FAIL: sklearn.externals.joblib.test.test_disk.test_disk_used
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/home/jacob04/opt/python/virtualenvs/work/lib/python2.7/site-packages/nose/case.py",
line 197, in runTest
self.test(*self.arg)
File
"/home/jacob04/.my_python_packages/lib/python2.7/site-packages/sklearn/externals/joblib/test/test_disk.py",
line 41, in test_disk_used
nose.tools.assert_true(disk_used(cachedir) < target_size + 12)
AssertionError: False is not true
----------------------------------------------------------------------
Ran 1338 tests in 89.752s
FAILED (SKIP=13, errors=2, failures=1)
Here is the result of `pip freeze`:
Cython==0.19.1
PIL==1.1.7
PyXB==1.2.2
PyYAML==3.10
argparse==1.2.1
distribute==0.6.34
epc==0.0.3
ipython==0.13.2
jedi==0.5b5
matplotlib==1.3.x
nltk==2.0.4
nose==1.3.0
numexpr==2.1
numpy==1.7.1
pandas==0.11.0
pyparsing==1.5.7
python-dateutil==2.1
pytz==2013b
rpy2==2.3.1
scikit-learn==0.13
scipy==0.12.0
sexpdata==0.0.2
six==1.3.0
stemming==1.0.1
-e git+
https://github.com/PyTables/PyTables.git@df7b20444b0737cf34686b5d88b4e674ec85575b#egg=tables-dev
tornado==3.0.1
wsgiref==0.1.2
This is all with `Python 2.7.4` on a full local (rootless) installation
through pip. Anyone knows why I am getting these errors and how can I fix
them?
Thanks!
Jacob
PS: Note: I have left a copy of this question also in StackOverflow:
http://stackoverflow.com/questions/17435772/tracing-errors-in-sklearn-tests
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general