Scikit-learn cross val score: too many indices for array

前端 未结 5 1877
再見小時候
再見小時候 2020-12-15 05:15

I have the following code

 from sklearn.ensemble import ExtraTreesClassifier
 from sklearn.cross_validation import cross_val_score
 #split the dataset for tr         


        
5条回答
  •  难免孤独
    2020-12-15 05:42

    Adding .ravel() to the Y/Labels variable passed into the formula helped solve this problem within KNN as well.

提交回复
热议问题