View source: R/flash_greedy_init_fns.R
flash_greedy_init_default | R Documentation |
The default method for initializing the loadings \ell_{\cdot k}
and
factor values f_{\cdot k}
of a new ("greedy") flash factor. It is
essentially an implementation of the power method, but unlike many existing
implementations, it can handle missing data and sign constraints. For details,
see Chapter 2.2.3 in the reference below.
flash_greedy_init_default(
flash,
sign_constraints = NULL,
tol = NULL,
maxiter = 100,
seed = 666
)
flash |
A |
sign_constraints |
This parameter can be used to constrain the sign of
the initial factor and loadings. It should be a vector of length two with
entries equal to -1, 0, or 1. The first entry constrains the sign of the
loadings |
tol |
Convergence tolerance parameter. When the maximum (absolute)
change over all values |
maxiter |
Maximum number of power iterations. |
seed |
Since initialization is random, a default seed is set for reproducibility. |
A list of length two consisting of, respectively, the vector of
initial values for loadings \ell_{\cdot k}
and the vector of initial
factor values f_{\cdot k}
.
Jason Willwerscheid (2021), Empirical Bayes Matrix Factorization: Methods and Applications. Ph.D. thesis, University of Chicago.
flash_greedy
,
flash_greedy_init_softImpute
,
flash_greedy_init_irlba
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.