Documentation of 'smile.imputation.KMeansImputation' Java class
KMeansImputation
smile.imputation

Class KMeansImputation

  • All Implemented Interfaces:
    MissingValueImputation


    public class KMeansImputation
    extends java.lang.Object
    implements MissingValueImputation
    Missing value imputation by K-Means clustering. First cluster data by K-Means with missing values and then impute missing values with the average value of each attribute in the clusters.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void impute(double[][] data)
      Impute missing values in the dataset.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • KMeansImputation

        public KMeansImputation(int k)
        Constructor.
        Parameters:
        k - the number of clusters in K-Means clustering.
      • KMeansImputation

        public KMeansImputation(int k,
                                int runs)
        Constructor.
        Parameters:
        k - the number of clusters in K-Means clustering.
        runs - the number of runs of K-Means algorithm.

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.