Package ml.shifu.guagua.example.kmeans
Class KMeansMasterParams
- java.lang.Object
-
- ml.shifu.guagua.io.HaltBytable
-
- ml.shifu.guagua.example.kmeans.KMeansMasterParams
-
- All Implemented Interfaces:
ml.shifu.guagua.io.Bytable
public class KMeansMasterParams extends ml.shifu.guagua.io.HaltBytableKMeansMasterParamsis 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 Summary
Constructors Constructor Description KMeansMasterParams()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoReadFields(DataInput in)voiddoWrite(DataOutput out)intgetC()intgetK()List<double[]>getPointList()voidsetC(int c)voidsetK(int k)voidsetPointList(List<double[]> pointList)
-
-
-
Method Detail
-
doWrite
public void doWrite(DataOutput out) throws IOException
- Specified by:
doWritein classml.shifu.guagua.io.HaltBytable- Throws:
IOException
-
doReadFields
public void doReadFields(DataInput in) throws IOException
- Specified by:
doReadFieldsin classml.shifu.guagua.io.HaltBytable- Throws:
IOException
-
getK
public int getK()
-
setK
public void setK(int k)
-
getC
public int getC()
-
setC
public void setC(int c)
-
getPointList
public List<double[]> getPointList()
-
setPointList
public void setPointList(List<double[]> pointList)
-
-