Package org.carrot2.math.matrix
Class LocalNonnegativeMatrixFactorizationFactory
java.lang.Object
org.carrot2.attrs.AttrComposite
org.carrot2.math.matrix.IterativeMatrixFactorizationFactory
org.carrot2.math.matrix.LocalNonnegativeMatrixFactorizationFactory
- All Implemented Interfaces:
AcceptingVisitor,MatrixFactorizationFactory
public class LocalNonnegativeMatrixFactorizationFactory extends IterativeMatrixFactorizationFactory
Performs matrix factorization using the Local Non-negative Matrix Factorization algorithm with
minimization of the Kullback-Leibler divergence between A and UV' and multiplicative updating.
-
Field Summary
Fields inherited from class org.carrot2.math.matrix.IterativeMatrixFactorizationFactory
DEFAULT_K, DEFAULT_MAX_ITERATIONS, DEFAULT_ORDERED, DEFAULT_SEEDING_FACTORY, DEFAULT_STOP_THRESHOLD, factorizationQuality, k, maxIterations, ordered, seedingFactory, stopThreshold -
Constructor Summary
Constructors Constructor Description LocalNonnegativeMatrixFactorizationFactory() -
Method Summary
Modifier and Type Method Description MatrixFactorizationfactorize(org.carrot2.math.mahout.matrix.DoubleMatrix2D A)Factorizes matrixA.Methods inherited from class org.carrot2.math.matrix.IterativeMatrixFactorizationFactory
createSeedingStrategy, estimateIterationsNumber, getK, getMaxIterations, getSeedingFactory, getStopThreshold, isOrdered, setK, setMaxIterations, setOrdered, setSeedingFactory, setStopThreshold
-
Constructor Details
-
LocalNonnegativeMatrixFactorizationFactory
public LocalNonnegativeMatrixFactorizationFactory()
-
-
Method Details
-
factorize
Description copied from interface:MatrixFactorizationFactoryFactorizes matrixA.- Parameters:
A- matrix to be factorized.
-