Description Usage Arguments Value
View source: R/FastLORS_Functions.R
softImpute
is a function from Mazudmer et al. (2010). It solves the problem min || X - Z ||_Omega + alpha || Z ||_Nulear and is used in parameter tuning for LORS.
Note: This function is adapted from the LORS MATLAB implementation
1 | softImpute(X, Z, Omega0, Omega1, Omega2, alpha0, maxRank)
|
X |
a (possibly) incomplete matrix |
Z |
the target matrix |
Omega0 |
Boolean matrix of observed entries |
Omega1 |
Boolean matrix of training entries |
Omega2 |
Boolean matrix of validation entries |
alpha0 |
initial tuning parameter |
maxRank |
maximum rank of the solution |
Z |
Estimate of the target matrix |
Err |
Squared Error of the difference between X and Z on the validation set |
rank_alpha |
The rank of the estimates |
znorm |
The sum of the soft-thresholded singular values of the estimates |
Alpha |
The tuning parameters used |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.