2012/1/21 Gael Varoquaux <[email protected]>:
> ======================================================================
> ERROR: sklearn.svm.tests.test_svm.test_liblinear_set_coef
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>  File "/usr/lib/pymodules/python2.7/nose/case.py", line 187, in runTest
>    self.test(*self.arg)
>  File "/home/varoquau/dev/scikit-learn/sklearn/svm/tests/test_svm.py",
> line 493, in test_liblinear_set_coef
>    values2 = clf.decision_function(iris.data)
>  File "/home/varoquau/dev/scikit-learn/sklearn/svm/base.py", line 501,
> in decision_function
>    self.class_weight, self.label_, self._get_bias())
>  File "liblinear.pyx", line 178, in
> sklearn.svm.liblinear.decision_function_wrap
> (sklearn/svm/liblinear.c:2775)
> ValueError: ndarray is not Fortran contiguous

This is very strange; I get no such error. I've visually traced the
code and see no place where raw_coef_ should be turned into a
C-contiguous array. I did not touch that attribute during refactoring,
either. Did you do make clean; make inplace? Have you tried
re-cythonizing liblinear.pyx?

-- 
Lars Buitinck
Scientific programmer, ILPS
University of Amsterdam

------------------------------------------------------------------------------
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

Reply via email to