import check_arrays from sklearn

后端 未结 4 439
长情又很酷
长情又很酷 2020-12-10 01:47

I\'m trying to use a svm function from the scikit learn package for python but I get the error message:

from sklearn.utils.validation import check_arrays
         


        
4条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-10 02:25

    This method was removed in 0.16, replaced by a (very different) check_array function. You are likely getting this error because you didn't upgrade from 0.15 to 0.16 properly. [Or because you relied on a not-really-public function in sklearn]. See http://scikit-learn.org/dev/install.html#canopy-and-anaconda-for-all-supported-platforms . If you installed using anaconda / conda, you should use the conda mechanism to upgrade, not pip. Otherwise old .pyc files might remain in your folder.

提交回复
热议问题