public class KMeansMasterParams
extends ml.shifu.guagua.io.HaltBytable
KMeansMasterParams is the master results for KMeans distributed guagua application.
Master result for each iteration is the new k center points after accumulating from all workers' result.
| Constructor and Description |
|---|
KMeansMasterParams() |
| Modifier and Type | Method and Description |
|---|---|
void |
doReadFields(DataInput in) |
void |
doWrite(DataOutput out) |
int |
getC() |
int |
getK() |
List<double[]> |
getPointList() |
void |
setC(int c) |
void |
setK(int k) |
void |
setPointList(List<double[]> pointList) |
public void doWrite(DataOutput out) throws IOException
doWrite in class ml.shifu.guagua.io.HaltBytableIOExceptionpublic void doReadFields(DataInput in) throws IOException
doReadFields in class ml.shifu.guagua.io.HaltBytableIOExceptionpublic int getK()
public void setK(int k)
public int getC()
public void setC(int c)
public List<double[]> getPointList()
public void setPointList(List<double[]> pointList)
Copyright © 2015. All Rights Reserved.