Description Usage Arguments Value
Internal function for cv_snpls
1 2 3 4 5 6 7 8 9 10 11 12 13 |
xtrain |
A three-way training array |
ytrain |
A response training matrix |
xval |
A three-way test array |
yval |
A response test matrix |
ncomp |
Number of components for the sNPLS model |
threshold_j |
Threshold value on Wj. Scaled between [0, 1) |
threshold_k |
Threshold value on Wk. Scaled between [0, 1) |
keepJ |
Number of variables to keep for each component, ignored if threshold_j is provided |
keepK |
Number of 'times' to keep for each component, ignored if threshold_k is provided |
method |
Select between sNPLS, sNPLS-SR or sNPLS-VIP |
... |
Further arguments passed to sNPLS |
Returns the CV mean squared error
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.