View source: R/FeatureSelection.R
feature.selection.RFE | R Documentation |
Recursive feature elimnation
feature.selection.RFE(
feature.df,
group,
functions = "lrFuncs",
seed = 111,
scale = TRUE,
sizes = c(1:10),
repeats = 5,
number = 5,
method = "cv",
cores = 50
)
feature.df |
Row is sample, column is feature |
functions |
Default: lrFuncs. lrFuncs, rfFuncs http://topepo.github.io/caret/available-models.html There are a number of pre-defined sets of functions for several models, including: linear regression (in the object lmFuncs), random forests (rfFuncs), naive Bayes (nbFuncs), bagged trees (treebagFuncs) and functions that can be used with caret’s train function (caretFuncs). |
seed |
Default 111 |
scale |
Deafult TRUE |
sizes |
Default c(1:5), The sizes determines the number of most important features the rfe should iterate. |
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 |
method |
The external resampling method: boot, repeatedcv, cv, LOOCV or LGOCV (for repeated training/test splits) |
cores |
cores for parallel |
loonR::feature.selection.RFE(miR.df, group, functions="lrFuncs")
Recursive feature elimnation (rfe) offers a rigorous way to determine the important variables before you even feed them into a ML algo.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.