public class SingularValueDecompositionLibJ extends AbstractSvd
SvdlibjDriver
that implements the MatrixFactorization
interface.
NOTE: SVDLIBJ is known to have bugs and incorrectly computes the SVD for some
dimensions.classFeatures, dataClasses, scaledClassFeatures, scaledDataClasses, singularValues
Constructor and Description |
---|
SingularValueDecompositionLibJ() |
Modifier and Type | Method and Description |
---|---|
void |
factorize(MatrixFile mFile,
int dimensions)
Factorizes the
MatrixFile m . |
void |
factorize(SparseMatrix matrix,
int dimensions)
Factorizes the
SparseMatrix m . |
MatrixBuilder |
getBuilder()
Returns a
MatrixBuilder that is optimized for MatrixFile s
that will be processed by this MatrixFactorization algorithm. |
classFeatures, dataClasses, singularValues
public void factorize(SparseMatrix matrix, int dimensions)
SparseMatrix
m
. If m
is of size
MxN, this will generate two matrices: one of size MxnumDimensions
and one of size numDimensions
xN. This method must be called
before calling dataClasses
and classFeatures
.public void factorize(MatrixFile mFile, int dimensions)
MatrixFile
m
. If m
is of size
MxN, this will generate two matrices: one of size MxnumDimensions
and one of size numDimensions
xN. This method must be called
before calling dataClasses
and classFeatures
.public MatrixBuilder getBuilder()
MatrixBuilder
that is optimized for MatrixFile
s
that will be processed by this MatrixFactorization
algorithm.Copyright © 2012. All Rights Reserved.