View source: R/factorizations.R
factorize.alternate | R Documentation |
Matrix factorization algorithms based on the alternating optimization scheme
factorize.alternate(D, k, method = "MeDeCom.quadPen", t.method = "quadPen", Tfix = NULL, Tpartial = NULL, Tpartial.rows = NULL, Apartial = NULL, Apartial.cols = NULL, V = NULL, lambda = 0, init = "random", opt = 5, emp.dim = 500, emp.resample = TRUE, emp.vsf = 1, emp.borders = c(0, 1), qp.rangeT = c(0, 1), qp.Alower = NULL, qp.Aupper = NULL, itermax = 100, trace = FALSE, eps = 1e-08, ncores = 1, pheno = NULL, na.values = FALSE, seed = NULL, verbosity = 0L)
D |
m by n input matrix with mixture data |
k |
number of latent components, |
method |
optimization method used. Currently supported values are
|
t.method |
method for updating the latent component matrix, one of
|
Tfix |
an optional matrix of a priori known fixed components |
V |
for |
init |
type of initialization, either "random" (default) or "fixed". |
opt |
if |
emp.dim |
for |
emp.resample |
for |
itermax |
maximal number of iterations |
trace |
a flag indicating whether to return the factorization results for each iteration |
eps |
threshold for objective value change |
ncores |
number of CPU cores used for parallelization |
pheno |
a list with phenotypic information |
verbosity |
flag specifying whether to show diagnostic statements during the execution |
In case init
is "fixed" the starting values
for the m by k matrix of latent components
and for the k by n matrix of mixing proportions
should be specified as T and A elements of a list
supplied as opt
a list
with the following elements:
T
matrix of latent components
A
matrix of mixture proportions
Fval
the final value of the objective function
Conv
sequence of objective function values attained after each iteration
rmse
RMSE of the factorization
Martin Slawski
R port by Pavlo Lutsik
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.