Hi Weiwei.
Please report this issue in the issue tracker,
together with the version you are using and you platform.
Don't be alarmed, though, if one of out over thousand tests is failing.
This is just some numerical issue in one of the many estimators.
By the way, please don't write me personally.
All bug-reports should go to the mailing list or issue tracker.
You can also ask questions on stackoverflow with the scikit-learn tag.
Best,
Andy
On 01/09/2013 09:54 AM, weiwei wrote:
Dear Andreas,
Thanks for your time!
I tried " nosetests sklearn --exe " , but I does not work as well.
Info is as this:
$ nosetests sklearn --exe
......................................................S.........SS..................................................S......................................................S...................................................../usr/local/lib/python2.7/dist-packages/sklearn/externals/joblib/test/test_func_inspect.py:122:
UserWarning: Cannot inspect object <functools.partial object at
0x3614d60>, ignore list will not work.
nose.tools.assert_equal(filter_args(ff, ['y'], (1, )),
...
........................................................................................................................................................................................................................................................Exception
AttributeError: AttributeError("'NoneType' object has no attribute
'tell'",) in <bound method memmap.__del__ of memmap(2.0602324e-316)>
ignored
Exception AttributeError: AttributeError("'NoneType' object has no
attribute 'tell'",) in <bound method memmap.__del__ of
memmap(2.97407835e-316)> ignored
Exception AttributeError: AttributeError("'NoneType' object has no
attribute 'tell'",) in <bound method memmap.__del__ of
memmap(2.97407835e-316)> ignored
/usr/local/lib/python2.7/dist-packages/sklearn/externals/joblib/test/test_numpy_pickle.py:182:
Warning: file "/tmp/tmpvtttpr/test.pkl865" appears to be a zip,
ignoring mmap_mode "r" flag passed
numpy_pickle.load(this_fil ename, mmap_mode='r')
Exception AttributeError: AttributeError("'NoneType' object has no
attribute 'tell'",) in <bound method memmap.__del__ of
memmap(2.923007e-316)> ignored
....................................................................................................S..............................................................................................................................................................................................................................................................................................................................................................................................................F.....................................................SSS....S....S...........................................................................................
======================================================================
FAIL: sklearn.tests.test_common.test_transforme rs
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File
"/usr/local/lib/python2.7/dist-packages/sklearn/tests/test_common.py",
line 177, in test_transformers
"fit_transform not correct in %s" % Trans)
File "/usr/lib/python2.7/dist-packages/numpy/testing/utils.py", line
800, in assert_array_almost_equal
header=('Arrays are not almost equal to %d decimals' % decimal))
File "/usr/lib/python2.7/dist-packages/numpy/testing/utils.py", line
600, in assert_array_compare
raise AssertionError(msg)
AssertionError:
Arrays are not almost equal to 2 decimals
fit_transform not correct in <class 'sklearn.linear_model.randomized_
l1.RandomizedLogisticRegression'>
(shapes (10, 4), (10, 1) mismatch)
x: array([[ 1.41110676, 1.172197 , 2.42510082, 3.17842217],
[ 1.68885775, 0. , 1.80872615, 1.43440696],
[ 0.99448027, 3.90732333, 0.35184056, 0.43782683],...
y: array([[ 2.42510082],
[ 1.80872615],
[ 0.35184056],...
-------------------- >> begin captured stdout << ---------------------
RandomizedLogisticRegression(C=1, fit_intercept=True,
memory=Memory(cachedir=None), n_jobs=1, n_resampling=200,
normalize=True, pre_dispatch=3*n_jobs, random_state=None,
; sample_fraction=0.75, scaling=0.5, selection_threshold=0.25,
tol=0.001, verbose=False)
The number of classes has to be greater than one.
--------------------- >> end captured stdout << ----------------------
----------------------------------------------------------------------
Ran 1133 tests in 59.270s
FAILED (SKIP=11, failures=1)
Thanks and regards
Wei Wei
------------------------------------------------------------------------------
Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery
and much more. Keep your Java skills current with LearnJavaNow -
200+ hours of step-by-step video tutorials by Java experts.
SALE $49.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122612
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general