View source: R/add_from_data.R
flash_add_factors_from_data | R Documentation |
Computes the current residuals from data
and
f_init
and adds K
new factors based on init_fn
applied to these residuals. (If f_init
is NULL
then
the residuals are the data.)
flash_add_factors_from_data(data, K, f_init = NULL, init_fn = "udv_si",
backfit = TRUE, ...)
data |
An n by p matrix or a flash data object created using
|
K |
The number of factors to add. |
f_init |
The flash object or flash fit object to which new
factors are to be added. If |
init_fn |
The function used to initialize factors. Options include:
A user-specified function can also be used. This function should
take parameters |
backfit |
If |
... |
Additional parameters to be passed to |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.