Package ml.shifu.guagua.example.kmeans
This package contains simple sum KMeans example code.
How to run it, see guagua-client/src/main/bash/demo-mr-kmeans.sh
-
Class Summary Class Description KMeansCentriodsOutput KMeansCentriodsOutputis used to write the final k centers to file system.KMeansContants KMeansDataOutput KMeansDataOutputis used to save tagged data into HDFS.KMeansMaster KMeansMastercomputes new k center points for next iteration.KMeansMasterParams KMeansMasterParamsis the master results for KMeans distributed guagua application.KMeansWorker KMeansWorkerre-computes each record tagged with new category.KMeansWorkerParams KMeansWorkerParamsis the worker results for KMeans distributed guagua application.TaggedRecord Data records with tag.