Package org.carrot2.math.matrix
Class NonnegativeMatrixFactorizationKLFactory
- java.lang.Object
-
- org.carrot2.attrs.AttrComposite
-
- org.carrot2.math.matrix.IterativeMatrixFactorizationFactory
-
- org.carrot2.math.matrix.NonnegativeMatrixFactorizationKLFactory
-
- All Implemented Interfaces:
AcceptingVisitor
,MatrixFactorizationFactory
public class NonnegativeMatrixFactorizationKLFactory extends IterativeMatrixFactorizationFactory
Performs matrix factorization using the Non-negative Matrix Factorization by minimization of 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
-
Fields inherited from class org.carrot2.attrs.AttrComposite
attributes
-
-
Constructor Summary
Constructors Constructor Description NonnegativeMatrixFactorizationKLFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MatrixFactorization
factorize(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
-
Methods inherited from class org.carrot2.attrs.AttrComposite
accept
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.carrot2.attrs.AcceptingVisitor
accept
-
-
-
-
Method Detail
-
factorize
public MatrixFactorization factorize(org.carrot2.math.mahout.matrix.DoubleMatrix2D A)
Description copied from interface:MatrixFactorizationFactory
Factorizes matrixA
.- Parameters:
A
- matrix to be factorized.
-
-