Description Usage Arguments Value Note Author(s) See Also
Function used to evaluate a fitness function in many train-test sets
1 2 3 4 | modelSelection(chr,
parent,
splits=1:length(parent$data$splitTrain),
set=parent$data$testErrorWeights)
|
chr |
Chromosome or vector object. |
parent |
Parent object, commonly BigBang object. |
splits |
Which sets of splits will be used to compute the fitness function. Default to all splits defined in |
set |
Weigths used in training and test sets. Vector of two values. The first is the weight of train error. The second is the weight of test error. The default value is taken from parent$data$testErrorWeights whose default is c(0,1) (considering only test error). |
A vector with the fitness computed for each split weighted according to set
parameter.
This function is designed to be used in forwardSelectionModels
Victor Trevino. Francesco Falciani Group. University of Birmingham, U.K.
forwardSelectionModels.BigBang
, classPrediction
, fitness
, configBB.VarSel
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.