I have the following code
from sklearn.ensemble import ExtraTreesClassifier from sklearn.cross_validation import cross_val_score #split the dataset for tr
Adding .ravel() to the Y/Labels variable passed into the formula helped solve this problem within KNN as well.
.ravel()