Description Usage Arguments Value Examples
View source: R/feature_selection.R
Perform recursive feature elimination on the dataset using caret's package.
1 2 3 | recursive_feature_elimination(datamat, samples.class,
functions = caret::rfFuncs, method = "cv", repeats = 5,
number = 10, subsets = 2^(2:4))
|
datamat |
data matrix from dataset. |
samples.class |
string or index indicating what metadata to use. |
functions |
a list of functions for model fitting, prediction and variable importance. |
method |
the external resampling method: boot, cv, LOOCV or LGOCV (for repeated training/test splits. |
repeats |
for repeated k-fold cross-validation only: the number of complete sets of folds to compute. |
number |
either the number of folds or number of resampling iterations. |
subsets |
a numeric vector of integers corresponding to the number of features that should be retained. |
A caret's rfe object with the result of recursive feature selection.
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.