| ga_parsimony-class | R Documentation |
An S4 class for searching parsimonious models by feature selection and parameter tuning with genetic algorithms.
Objects can be created by calls to the ga_parsimony function.
callan object of class "call" representing the matched call;
min_parama vector of length equal to the model parameters providing the minimum of the search space;
max_parama vector of length equal to the model parameters providing the maximum of the search space;
nParamsa value specifying the number of model parameter to be tuned;
feat_thresproportion of selected features in the initial population. It is recommended a high percentage of selected features for the first generations;
feat_mut_thresthreshold to consider a random number between 0 and 1 is considered one if a value of the parameters-chromosome is muted. Default value is set to 0.5;
not_mutednumber of the best elitists that are not muted. Default value is set to 3;
rerank_errorwhen a value distinct to zero is provided a second reranking process according to the model complexities is called by 'parsimonyReRank' function. Its primary objective is to select individuals with high validation cost while maintaining the robustness of a parsimonious model. This function switches the position of two models if the first one is more complex than the latter and no significant difference is found between their fitness values in terms of cost. Therefore, if the absolute difference between the validation costs are lower than 'rerank_error' they are considered similar. Default value=0.01;
nFeaturesa value specifying the number of maximum input features;
names_parama vector with the name of the model parameters;
names_featuresa vector with the name of the input features;
popSizethe population size;
iterthe actual (or final) iteration of GA search;
iter_start_rerankiteration when ReRanking process is actived. Default=0. Sometimes is useful not to use ReRanking process in the first generations;
early_stopthe number of consecutive generations without any improvement in the best fitness value before the GA is stopped;
maxiterthe maximum number of iterations to run before the GA search is halted;
minutes_genelapsed time of this generation (in minutes);
minutes_totaltotal elapsed time (in minutes);
suggestionsa matrix of user provided solutions and included in the initial population;
populationthe current (or final) population;
elitismthe number of best fitness individuals to survive at each generation;
pcrossoverthe crossover probability;
pmutationthe mutation probability;
best_scorethe best validation score in the whole GA process;
solution_best_scoreSolution with the best validation score in the whole GA process;
fitnessvalthe values of validation cost for the current (or final) population;
fitnesststthe values of testing cost for the current (or final) population;
complexitythe values of model complexities for the current (or final) population;
summarya matrix of summary statistics for fitness values at each iteration (along the rows);
bestSolLista list with the best solution of all iterations;
bestfitnessValthe validation cost of the best solution at the last iteration;
bestfitnessTstthe testing cost of the best solution at the last iteration;
bestcomplexitythe model complexity of the best solution at the last iteration;
bestsolutionthe best solution at the last iteration;
historya list with the population of all iterations;
Francisco Javier Martinez-de-Pison. fjmartin@unirioja.es. EDMANS Group. http://www.mineriadatos.com
For examples of usage see ga_parsimony.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.