View source: R/feature_selection.R
| filter_feature_selection | R Documentation |
Performs feature selection using univariate filters.
filter_feature_selection(
datamat,
samples.class,
functions = caret::rfSBF,
method = "cv",
repeats = 5
)
datamat |
Data matrix with features in rows and samples in columns. |
samples.class |
Sample class labels. |
functions |
Caret SBF functions list. |
method |
Resampling method passed to |
repeats |
Number of repeats for resampling. |
An sbf object.
datamat <- matrix(
rnorm(20),
nrow = 4,
dimnames = list(paste0("x", 1:4), paste0("s", 1:5))
)
classes <- factor(c("A", "A", "B", "B", "A"))
filter_feature_selection(datamat, classes, caret::rfSBF)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.