I need to fit RandomForestRegressor from sklearn.ensemble.
RandomForestRegressor
sklearn.ensemble
forest = ensemble.RandomForestRegressor(**RF_tuned_parameters) model = fo
I had the same problem. The problem was that the labels were in a column format while it expected it in a row. use np.ravel()
np.ravel()
knn.score(training_set, np.ravel(training_labels))
Hope this solves it.