python - How to Plot the Results of Text K-Means Clustering? -
i using example code provided here implement k-means clustering. wish plot result on graph understand output better. how go it?
i find little difficult understand plotting code provided in places.
looking @ page linked, seems particular clustering scheme use starts mapping words high dimensional space, e.g.,
hashingvectorizer hashes word occurrences fixed dimensional space
so, point, question how project high dimensional space onto 2d. after all, if can this, can plot points corresponding words in 2d, , color points according cluster number.
there several ways project high dimensional space onto 2d. perhaps intuitive 1 pca (which first in link above).
Comments
Post a Comment