enpls.fs | R Documentation |
Measuring feature importance with ensemble partial least squares.
enpls.fs(
x,
y,
maxcomp = NULL,
cvfolds = 5L,
reptimes = 500L,
method = c("mc", "boot"),
ratio = 0.8,
parallel = 1L
)
x |
Predictor matrix. |
y |
Response vector. |
maxcomp |
Maximum number of components included within each model. If not specified, will use the maximum number possible (considering cross-validation and special cases where n is smaller than p). |
cvfolds |
Number of cross-validation folds used in each model
for automatic parameter selection, default is |
reptimes |
Number of models to build with Monte-Carlo resampling or bootstrapping. |
method |
Resampling method. |
ratio |
Sampling ratio used when |
parallel |
Integer. Number of CPU cores to use.
Default is |
A list containing two components:
variable.importance
- a vector of variable importance
coefficient.matrix
- original coefficient matrix
Nan Xiao <https://nanx.me>
See enpls.od
for outlier detection with
ensemble partial least squares regressions.
See enpls.fit
for fitting ensemble partial least
squares regression models.
data("alkanes")
x <- alkanes$x
y <- alkanes$y
set.seed(42)
fs <- enpls.fs(x, y, reptimes = 50)
print(fs)
plot(fs)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.