Uses of Class
ml.shifu.guagua.example.kmeans.KMeansWorkerParams
-
Packages that use KMeansWorkerParams Package Description ml.shifu.guagua.example.kmeans This package contains simple sum KMeans example code. -
-
Uses of KMeansWorkerParams in ml.shifu.guagua.example.kmeans
Methods in ml.shifu.guagua.example.kmeans that return KMeansWorkerParams Modifier and Type Method Description KMeansWorkerParamsKMeansWorker. doCompute(ml.shifu.guagua.worker.WorkerContext<KMeansMasterParams,KMeansWorkerParams> context)Using the new k centers to tag each record with index denoting the record belongs to which category.Method parameters in ml.shifu.guagua.example.kmeans with type arguments of type KMeansWorkerParams Modifier and Type Method Description KMeansMasterParamsKMeansMaster. compute(ml.shifu.guagua.master.MasterContext<KMeansMasterParams,KMeansWorkerParams> context)Master computation by accumulating all the k center points sum values from all workers, then average to get new k center points.KMeansWorkerParamsKMeansWorker. doCompute(ml.shifu.guagua.worker.WorkerContext<KMeansMasterParams,KMeansWorkerParams> context)Using the new k centers to tag each record with index denoting the record belongs to which category.voidKMeansWorker. init(ml.shifu.guagua.worker.WorkerContext<KMeansMasterParams,KMeansWorkerParams> context)voidKMeansWorker. load(ml.shifu.guagua.hadoop.io.GuaguaWritableAdapter<org.apache.hadoop.io.LongWritable> currentKey, ml.shifu.guagua.hadoop.io.GuaguaWritableAdapter<org.apache.hadoop.io.Text> currentValue, ml.shifu.guagua.worker.WorkerContext<KMeansMasterParams,KMeansWorkerParams> workerContext)Loading data into memory.voidKMeansCentriodsOutput. postApplication(ml.shifu.guagua.master.MasterContext<KMeansMasterParams,KMeansWorkerParams> context)voidKMeansDataOutput. postApplication(ml.shifu.guagua.worker.WorkerContext<KMeansMasterParams,KMeansWorkerParams> context)protected voidKMeansWorker. postLoad(ml.shifu.guagua.worker.WorkerContext<KMeansMasterParams,KMeansWorkerParams> context)
-