Class RandomSeedingStrategy

java.lang.Object
org.carrot2.math.matrix.RandomSeedingStrategy
All Implemented Interfaces:
SeedingStrategy

public class RandomSeedingStrategy extends Object implements SeedingStrategy
Random matrix factorization seeding.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates RandomSeedingStrategy with seed based on current time.
    Creates RandomSeedingStrategy with given random seed.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    seed(org.carrot2.math.mahout.matrix.DoubleMatrix2D A, org.carrot2.math.mahout.matrix.DoubleMatrix2D U, org.carrot2.math.mahout.matrix.DoubleMatrix2D V)
    Initializes values of the provided U and V matrices.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • RandomSeedingStrategy

      public RandomSeedingStrategy()
      Creates RandomSeedingStrategy with seed based on current time.
    • RandomSeedingStrategy

      public RandomSeedingStrategy(int seed)
      Creates RandomSeedingStrategy with given random seed.
  • Method Details

    • 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
    • toString

      public String toString()
      Overrides:
      toString in class Object