Description Usage Arguments Value Examples
Implement forward feature selection and return data with selected features Uses root mean squared error for regression and accuracy for classification
1 2 3 4 5 6 7 8 | ForwardSelection(
my_mod,
feature,
label,
max_f = NA,
type = "classification",
cv = 3
)
|
my_mod |
model name in string (must be in caret::modelLookup()) |
feature |
training dataset with features |
label |
training dataset with labels. |
max_f |
maximum amount of features to select |
type |
problem type. (Must be 'regression' or 'classification') |
cv |
number of folds for cross validation |
The dataset with selected features.
1 2 3 4 | y <- iris$Species
x <- iris[c(1,2,3,4)]
ffs <- ForwardSelection(feature=x, label=y, my_mod="rf")
print(x[ffs])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.