select the best ncomp and alpha with cross-validation, then use them to fit the complete training set. scale = TRUE
1 | enspls.ad.core.fit(x.tr, y.tr, maxcomp, cvfolds, alpha)
|
the fitted spls object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.