Class HGAFS
java.lang.Object
unifeat.featureSelection.FeatureSelection
unifeat.featureSelection.wrapper.WrapperApproach
unifeat.featureSelection.wrapper.GABasedMethods.BasicGA<Population>
unifeat.featureSelection.wrapper.GABasedMethods.HGAFS.HGAFS
This java class is used to implement feature selection method based on hybrid
genetic algorithm for feature selection using local search (HGAFS) in which
the type of Population is extended from Population class.
- Author:
- Sina Tabakhi
- See Also:
-
Field Summary
Fields inherited from class unifeat.featureSelection.wrapper.GABasedMethods.BasicGA
K_FOLDS, NUM_ITERATION, populationFields inherited from class unifeat.featureSelection.wrapper.WrapperApproach
classLabel, nameFeatures, PROJECT_PATH, TEMP_PATHFields inherited from class unifeat.featureSelection.FeatureSelection
numClass, numFeatures, numSelectedFeature, selectedFeatureSubset, trainSet -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected int[]This method creates the selected feature subset based on the fittest individual in the population.voidStarts the feature selection process by hybrid genetic algorithm for feature selection using local search (HGAFS)Methods inherited from class unifeat.featureSelection.wrapper.WrapperApproach
loadDataSet, loadDataSet, newMethod, originalFeatureSetMethods inherited from class unifeat.featureSelection.FeatureSelection
getSelectedFeatureSubset, setNumSelectedFeature
-
Constructor Details
-
HGAFS
Initializes the parameters- Parameters:
arguments- array of parameters contains (path,numFeatures,classifierType,selectedClassifierPan,selectionType,crossoverType,mutationType,replacementType,numIterationpopulationSize,crossoverRate,mutationRate,kFolds,epsilon,mu) in whichpathis the path of the project,numFeaturesis the number of original features in the dataset,classifierTypeis the classifier type for evaluating the fitness of a solution,selectedClassifierPanis the selected classifier panel,selectionTypeis used for selecting parents from the individuals of a population according to their fitness,crossoverTypeis used for recombining the parents to generate new offsprings based on crossover rate,mutationTypeis used for mutating new offsprings by changing the value of some genes in them based on mutation rate,replacementTypeis used for handling populations from one generation to the next generation,numIterationis the maximum number of allowed iterations that algorithm repeated,populationSizeis the size of population of candidate solutions,crossoverRateis the probability of crossover operation,mutationRateis the probability of mutation operation,kFoldsis the number of equal sized subsamples that is used in k-fold cross validation,epsilonis the epsilon parameter used in the subset size determining scheme, andmuis the mu parameter used in the local search operation
-
-
Method Details
-
createSelectedFeatureSubset
protected int[] createSelectedFeatureSubset()This method creates the selected feature subset based on the fittest individual in the population.- Specified by:
createSelectedFeatureSubsetin classBasicGA<Population>- Returns:
- the array of indices of the selected feature subset
-
evaluateFeatures
public void evaluateFeatures()Starts the feature selection process by hybrid genetic algorithm for feature selection using local search (HGAFS)- Specified by:
evaluateFeaturesin classFeatureSelection
-