| Package | Description |
|---|---|
| ml.shifu.guagua.example.kmeans |
This package contains simple sum KMeans example code.
|
| Modifier and Type | Method and Description |
|---|---|
KMeansMasterParams |
KMeansMaster.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.
|
| Modifier and Type | Method and Description |
|---|---|
KMeansMasterParams |
KMeansMaster.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.
|
KMeansWorkerParams |
KMeansWorker.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.
|
void |
KMeansWorker.init(ml.shifu.guagua.worker.WorkerContext<KMeansMasterParams,KMeansWorkerParams> context) |
void |
KMeansWorker.load(GuaguaWritableAdapter<org.apache.hadoop.io.LongWritable> currentKey,
GuaguaWritableAdapter<org.apache.hadoop.io.Text> currentValue,
ml.shifu.guagua.worker.WorkerContext<KMeansMasterParams,KMeansWorkerParams> workerContext)
Loading data into memory.
|
void |
KMeansCentriodsOutput.postApplication(ml.shifu.guagua.master.MasterContext<KMeansMasterParams,KMeansWorkerParams> context) |
void |
KMeansDataOutput.postApplication(ml.shifu.guagua.worker.WorkerContext<KMeansMasterParams,KMeansWorkerParams> context) |
protected void |
KMeansWorker.postLoad(ml.shifu.guagua.worker.WorkerContext<KMeansMasterParams,KMeansWorkerParams> context) |
Copyright © 2019. All Rights Reserved.