Description Usage Arguments Value Author(s) References See Also
Hold out some data from a matrix and use softImpute
to complete the
matrix. The tuning parameter with the smallest prediction error is selected.
1 |
Y |
The data matrix. |
k |
A positive integer. The fold for the soft-impute cross validation. Default is 10. |
lambda_grid |
A vector of positive numerics. The values of lambda to
compute. The default is 20 values from the minimum to the maximum singular
value of |
print_update |
A logical. Should we print to the screen the status of the cross-validation-ish procedure at each iteration (TRUE) or not (FALSE)? |
lambda_min
A positive numeric. The lambda that minimizes the
prediction error.
lambda_grid
A vector of positive numerics. The putative lambdas.
pred_err_vec
A vector of positive numerics. The prediction errors
for the lambdas in lambda_grid
.
David Gerard
Choi, Yunjin, Jonathan Taylor, and Robert Tibshirani. "Selecting the number of principal components: Estimation of the true rank of a noisy matrix." arXiv preprint arXiv:1410.8260 (2014).
sig_soft
that calls soft_cv
to find the optimal
lambda.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.