Search code examples
javaapachemahoutk-means

Apache Mahout K-means clustering implementation


I have tried KmeansDriver's run() function but I did not give true parameters. Trustly, I did not understand implementation of this function. Is there a clear example about that which takes a matrix, dataset or file and gives clustered data?

I am trying to cluster a sparse matrix with using K-means algorithm. I will use Apache mahout but I did not find any example about how can it be implement with Java. Is there any tutorial or function javadoc about it?


Solution

  • You can look to the examples from book "Mahout in Action". For example, in chapter 7 there is a minimal example - for Mahout 0.5. Or you can look to the same example for Mahout 0.7.