Hello SKLearn community,
Following up on a thread a few days ago on errors encountered running
nosetests sklearn. Providing the details below as requested.
Installation is based on git clone of:
- https://github.com/fonnesbeck/ScipySuperpack
- https://github.com/scikit-learn/scikit-learn
Running Mac OSX 10.7.4. It's not important to me to have cutting-edge
versions of the code. Just looking for a stable version to learn and get
started.
Also, relevant output from pip freeze:
-
- ipython==0.13.beta1
- matplotlib==1.2.x
- nose==1.1.2
- ## FIXME: could not find svn URL in dependency_links for this package:
- numpy==1.8.0.dev-e15d0bd-20120629
- scikit-learn==0.12-git
- scipy==0.10.1
- sklearn==0.0.0
& nosetest results below.
Thank you.
-Michael
----------------------------------------------------------------------
Ran 937 tests in 132.127s
FAILED (SKIP=12, errors=2)
..../Users/anuzismichael/projects/scikit-learn/sklearn/naive_bayes.py:269:
RuntimeWarning: divide by zero encountered in log
self.class_log_prior_ = np.log(y_freq) - np.log(y_freq.sum())
.........................................
======================================================================
ERROR: test suite for <module 'sklearn.datasets.tests.test_lfw' from
'/Users/anuzismichael/projects/scikit-learn/sklearn/datasets/tests/test_lfw.pyc'>
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/Users/anuzismichael/.virtualenvs/learndjango/lib/python2.7/site-packages/nose-1.1.2-py2.7.egg/nose/suite.py",
line 208, in run
self.setUp()
File
"/Users/anuzismichael/.virtualenvs/learndjango/lib/python2.7/site-packages/nose-1.1.2-py2.7.egg/nose/suite.py",
line 291, in setUp
self.setupContext(ancestor)
File
"/Users/anuzismichael/.virtualenvs/learndjango/lib/python2.7/site-packages/nose-1.1.2-py2.7.egg/nose/suite.py",
line 314, in setupContext
try_run(context, names)
File
"/Users/anuzismichael/.virtualenvs/learndjango/lib/python2.7/site-packages/nose-1.1.2-py2.7.egg/nose/util.py",
line 478, in try_run
return func()
File
"/Users/anuzismichael/projects/scikit-learn/sklearn/datasets/tests/test_lfw.py",
line 72, in setup_module
imsave(file_path, uniface)
File
"/Users/anuzismichael/.virtualenvs/learndjango/lib/python2.7/site-packages/scipy-0.10.1-py2.7-macosx-10.7-x86_64.egg/scipy/misc/pilutil.py",
line 138, in imsave
im.save(name)
File
"/Users/anuzismichael/.virtualenvs/learndjango/lib/python2.7/site-packages/PIL/Image.py",
line 1439, in save
save_handler(self, fp, filename)
File
"/Users/anuzismichael/.virtualenvs/learndjango/lib/python2.7/site-packages/PIL/JpegImagePlugin.py",
line 471, in _save
ImageFile._save(im, fp, [("jpeg", (0,0)+im.size, 0, rawmode)])
File
"/Users/anuzismichael/.virtualenvs/learndjango/lib/python2.7/site-packages/PIL/ImageFile.py",
line 495, in _save
e = Image._getencoder(im.mode, e, a, im.encoderconfig)
File
"/Users/anuzismichael/.virtualenvs/learndjango/lib/python2.7/site-packages/PIL/Image.py",
line 401, in _getencoder
raise IOError("encoder %s not available" % encoder_name)
IOError: encoder jpeg not available
======================================================================
ERROR: Check that primal coef modification are not silently ignored
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/Users/anuzismichael/.virtualenvs/learndjango/lib/python2.7/site-packages/nose-1.1.2-py2.7.egg/nose/case.py",
line 197, in runTest
self.test(*self.arg)
File
"/Users/anuzismichael/projects/scikit-learn/sklearn/svm/tests/test_svm.py",
line 574, in test_immutable_coef_property
assert_raises(RuntimeError, clf.coef_.__setitem__, (0, 0), 0)
File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/case.py",
line 456, in assertRaises
callableObj(*args, **kwargs)
ValueError: assignment destination is read-only
----------------------------------------------------------------------
Ran 937 tests in 132.127s
FAILED (SKIP=12, errors=2)
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general