On Tue, May 08, 2012 at 02:09:58PM -0400, Yaroslav Halchenko wrote:
> I wonder what is the current approach to reproduce random failures of
> the tests battery?
There shouldn't be any :(.
> would it be feasible to suggest (PR) for sklearn/test_setup.py (I guess)
> to seed RNGs with some random but known seed and print it out
We try to do that as much as possible. AFAIK there are no unseeded RNGs,
but I am worried that we might have let things go through.
> ERROR:
> sklearn.svm.tests.test_sparse.test_sparse_svc_clone_with_callable_kernel
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "/usr/lib/pymodules/python2.7/nose/case.py", line 186, in runTest
> self.test(*self.arg)
> File
> "/tmp/buildd/scikit-learn-0.11.0/debian/python-sklearn/usr/lib/python2.7/dist-packages/sklearn/svm/tests/test_sparse.py",
> line 210, in test_sparse_svc_clone_with_callable_kernel
> b.fit(X_sp, Y)
> File
> "/tmp/buildd/scikit-learn-0.11.0/debian/python-sklearn/usr/lib/python2.7/dist-packages/sklearn/svm/base.py",
> line 141, in fit
> fit(X, y, sample_weight)
> File
> "/tmp/buildd/scikit-learn-0.11.0/debian/python-sklearn/usr/lib/python2.7/dist-packages/sklearn/svm/base.py",
> line 278, in _sparse_fit
> int(self.shrinking), int(self.probability))
> File "libsvm_sparse.pyx", line 158, in
> sklearn.svm.libsvm_sparse.libsvm_sparse_train
> (sklearn/svm/libsvm_sparse.c:1927)
> File "/usr/lib/python2.7/dist-packages/scipy/sparse/compressed.py", line
> 75, in __init__
> self.shape = shape # spmatrix will check for errors
> File "/usr/lib/python2.7/dist-packages/scipy/sparse/base.py", line 71, in
> set_shape
> raise ValueError('invalid shape')
> ValueError: invalid shape
I have been having this one every once in a while. It's hard to
reproduce, and I don't understand it :(.
> 3. I lost record of it but it was about ICA and failure to equate 1.0 to
> 0.994... up to two decimals which looked weird to me (do not remember
> location or details -- sorry)
Is that reproducible (I guess not, or you would be able to give us more
detail). ICA might be a code line in which we forgot the control the seed
of the random init.
Thanks for the report,
Gaƫl
------------------------------------------------------------------------------
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