codehaus


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Dataset training using Kmeans


Dear all,

I'm actually using the K-means algorithm for clustering, and scikit-learn
machine learning in python.

when I want to print my "score_accuarcy" using this command

>print(metrics.accuracy_score(y_test, y_pred))

   I get the following error :

"Classification metrics can't handle a mix of continuous-multioutput and
binary targets"

I use Python version 3.7 and Jupyter notebook


Thank you in advance