cv_fit: Internal function for cv_snpls
Description
Internal function for cv_snpls
Usage
cv_fit(xtrain, ytrain, xval, yval, ncomp, keepJ, keepK)
Arguments
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
keepJ
Number of variables to keep for each component
keepK
Number of 'times' to keep for each component
Value
Returns the CV mean squared error