| FEATURESELECTION | R Documentation |
Apply a classification method after a subset of features has been selected.
FEATURESELECTION(
train,
labels,
algorithm = c("ranking", "forward", "backward", "exhaustive"),
unieval = if (algorithm[1] == "ranking") fseval.univariate() else NULL,
uninb = NULL,
unithreshold = NULL,
multieval = fseval.multivariate(),
wrapmethod = NULL,
mainmethod = wrapmethod,
tune = FALSE,
methodparameters = NULL,
graph = FALSE,
seed = NULL,
...
)
train |
The training set (description), as a |
labels |
Class labels of the training set ( |
algorithm |
The feature selection algorithm. |
unieval |
The (univariate) evaluation criterion. |
uninb |
The number of selected feature (univariate evaluation). |
unithreshold |
The threshold for selecting feature (univariate evaluation). |
multieval |
The (multivariate) evaluation criterion. |
wrapmethod |
The classification method used for the wrapper evaluation. |
mainmethod |
The final method used for data classification (required: either |
tune |
If true, the function returns parameters instead of a classification model. |
methodparameters |
Pre-tuned parameters, as returned by the same method called with
|
graph |
Whether the method draws the graphic that goes with its tuning (the cross-validation curve, typically). Methods that have no such graphic accept the argument and ignore it. |
seed |
A specified seed for random number generation, so that two runs on the same data give the same model. Every learning method accepts it, so that it can be set the same way whatever the method; the deterministic ones simply have nothing to draw and give the same model with or without it. |
... |
Other parameters. |
selectfeatures, predict.selection, selection-class
## Not run:
require (datasets)
data (iris)
FEATURESELECTION (iris [, -5], iris [, 5], uninb = 2, mainmethod = LDA)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.