I would like to plot a 2d graph with the x-axis as term and y-axis as TFIDF score (or document id) for my list of sentences. I used scikit learn\'s fit_transform() to get th
Just assign a variable to the labels and use that to denote color. ex km = Kmeans().fit(X) clusters = km.labels_.tolist() then c=clusters
km = Kmeans().fit(X) clusters = km.labels_.tolist()
c=clusters