类 ml.shifu.guagua.example.kmeans.KMeansWorkerParams
的使用

使用 KMeansWorkerParams 的软件包
ml.shifu.guagua.example.kmeans This package contains simple sum KMeans example code. 
 

ml.shifu.guagua.example.kmeansKMeansWorkerParams 的使用
 

返回 KMeansWorkerParamsml.shifu.guagua.example.kmeans 中的方法
 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.
 

类型变量类型为 KMeansWorkerParamsml.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)
           
 



Copyright © 2015. All Rights Reserved.