This recipe explains how you can visualize the results of a K-means run.
This recipe assumes that you have followed the earlier recipe, have run K-means, and have access to the output of the K-means algorithm. If you have not already done so, follow the previous recipe to run K-means.
This section demonstrates how to convert output of the K-means execution to GraphML and visualize it.
<k-means-output-dir>
with the output directory of the k-mean execution.>bin/mahout clusterdump --seqFileDir<k-means-output-dir>/clusters-10-final/ --pointsDir<k-means-output-dir>/clusteredPoints --outputFormat GRAPH_ML -o clusters.graphml
MAHOUT_HOME/clusters.graphml
file using File->Open
menu of the Gephi.