public class SingularValueDecompositionLibC extends Object implements MatrixFactorization
Constructor and Description |
---|
SingularValueDecompositionLibC() |
Modifier and Type | Method and Description |
---|---|
Matrix |
classFeatures()
Returns the latent class by feature
Matrix . |
Matrix |
dataClasses()
Returns the data point by latent class
Matrix . |
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. |
double[] |
singularValues()
Returns a double array of the singular values.
|
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
.factorize
in interface MatrixFactorization
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
.factorize
in interface MatrixFactorization
public Matrix dataClasses()
Matrix
. This matrix
represents the degree by which each data point can be explained by the
discovered latent classes. Actual interpretations of the latent classes
depends on the actual algorithm used. This Matrix
can be used as
a reduced representation of the data points themselves.dataClasses
in interface MatrixFactorization
public Matrix classFeatures()
Matrix
. This matrix
represents the degree by which each feature affects each latent class.
Actual interpretations of this interaction depends on the actual
algorithm used. This Matrix
can be used as a reduced
representation of the features.classFeatures
in interface MatrixFactorization
public double[] singularValues()
public MatrixBuilder getBuilder()
MatrixBuilder
that is optimized for MatrixFile
s
that will be processed by this MatrixFactorization
algorithm.getBuilder
in interface MatrixFactorization
Copyright © 2012. All Rights Reserved.