| 类型变量类型为 KMeansMasterParams 的 ml.shifu.guagua.example.kmeans 中的方法参数 |
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. any invalid data will be set to null. |
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)
|