View source: R/preprocessing_feature_selection.R
select_vi | R Documentation |
Feature Selection performed by Variable Importance algorithm based on random forest
select_vi(data, y, nperm = 1, max_features = 10, verbose = FALSE)
data |
A data source, that is one of the major R formats: data.table, data.frame, matrix and so on. |
y |
A string that indicates a target column name. |
nperm |
An integer describing the number of permutations performed. By default set to 1. |
max_features |
A positive integer value describing the desired number of selected features. By default set to 10. |
verbose |
A logical value, if set to TRUE, provides all information about preprocessing process, if FALSE gives none. |
A list containing two objects:
`data`
A dataset with selected columns,
`idx`
The indexes of removed columns.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.