org.carrot2.matrix.factorization.seeding
Class RandomSeedingStrategy

java.lang.Object
  extended by org.carrot2.matrix.factorization.seeding.RandomSeedingStrategy
All Implemented Interfaces:
ISeedingStrategy

public class RandomSeedingStrategy
extends Object
implements ISeedingStrategy

Random matrix factorization seeding.


Constructor Summary
RandomSeedingStrategy()
          Creates RandomSeedingStrategy with seed based on current time.
RandomSeedingStrategy(int seed)
          Creates RandomSeedingStrategy with given random seed.
 
Method Summary
 void seed(org.apache.mahout.math.matrix.DoubleMatrix2D A, org.apache.mahout.math.matrix.DoubleMatrix2D U, org.apache.mahout.math.matrix.DoubleMatrix2D V)
          Initializes values of the provided U and V matrices.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RandomSeedingStrategy

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


RandomSeedingStrategy

public RandomSeedingStrategy(int seed)
Creates RandomSeedingStrategy with given random seed.

Parameters:
seed -
Method Detail

seed

public void seed(org.apache.mahout.math.matrix.DoubleMatrix2D A,
                 org.apache.mahout.math.matrix.DoubleMatrix2D U,
                 org.apache.mahout.math.matrix.DoubleMatrix2D V)
Description copied from interface: ISeedingStrategy
Initializes values of the provided U and V matrices. The A matrix is the input matrix to be factorized.

Specified by:
seed in interface ISeedingStrategy
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


Copyright (c) Dawid Weiss, Stanislaw Osinski