Class KMeansSeedingStrategy

    • Constructor Detail

      • KMeansSeedingStrategy

        public KMeansSeedingStrategy()
        Creates the KMeansSeedingStrategy.
      • KMeansSeedingStrategy

        public KMeansSeedingStrategy​(int maxIterations)
        Creates the KMeansSeedingStrategy.
        Parameters:
        maxIterations - maximum number of KMeans iterations.
    • Method Detail

      • seed

        public void seed​(org.carrot2.math.mahout.matrix.DoubleMatrix2D A,
                         org.carrot2.math.mahout.matrix.DoubleMatrix2D U,
                         org.carrot2.math.mahout.matrix.DoubleMatrix2D V)
        Description copied from interface: SeedingStrategy
        Initializes values of the provided U and V matrices. The A matrix is the input matrix to be factorized.
        Specified by:
        seed in interface SeedingStrategy
        Parameters:
        A - matrix to be factorized
        U - left factorized matrix to be seeded
        V - right factorized matrix to be seeded