import check_arrays from sklearn

后端 未结 4 427
长情又很酷
长情又很酷 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:32

    For me...

    This worked:

    from sklearn.utils import check_array
    

    Also this:

    from sklearn.utils.validation import check_array
    

    I am using version 0.16.0

    >>> sklearn.__version__

    '0.16.0'

    Do this:

    import sklearn
    
    print sklearn.__version__
    

    Tell us the results.

提交回复
热议问题