Class KMeansWorkerParams

  • All Implemented Interfaces:
    ml.shifu.guagua.io.Bytable

    public class KMeansWorkerParams
    extends ml.shifu.guagua.io.HaltBytable
    KMeansWorkerParams is the worker results for KMeans distributed guagua application. Sum values for each k categories are stored and counts are also stored for master to compute global average k center new points.
    • Constructor Detail

      • KMeansWorkerParams

        public KMeansWorkerParams()
    • Method Detail

      • doReadFields

        public void doReadFields​(DataInput in)
                          throws IOException
        Specified by:
        doReadFields in class ml.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[]> sumList)
      • setCountList

        public void setCountList​(List<Integer> countList)
      • isFirstIteration

        public boolean isFirstIteration()
      • setFirstIteration

        public void setFirstIteration​(boolean isFirstIteration)