Class OptimalACO
java.lang.Object
unifeat.featureSelection.FeatureSelection
unifeat.featureSelection.wrapper.WrapperApproach
unifeat.featureSelection.wrapper.ACOBasedMethods.BasicACO<Colony>
unifeat.featureSelection.wrapper.ACOBasedMethods.OptimalACO.OptimalACO
This java class is used to implement feature selection method based on
optimal ant colony optimization (Optimal ACO) in which the type of Colony is
extended from Colony class.
- Author:
- Sina Tabakhi
- See Also:
-
Field Summary
Fields inherited from class unifeat.featureSelection.wrapper.ACOBasedMethods.BasicACO
colony, K_FOLDS, NUM_ITERATION
Fields inherited from class unifeat.featureSelection.wrapper.WrapperApproach
classLabel, nameFeatures, PROJECT_PATH, TEMP_PATH
Fields inherited from class unifeat.featureSelection.FeatureSelection
numClass, numFeatures, numSelectedFeature, selectedFeatureSubset, trainSet
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected int[]
This method creates the selected feature subset based on the best ant in the colony.void
Starts the feature selection process by optimal ant colony optimization (Optimal ACO) methodMethods inherited from class unifeat.featureSelection.wrapper.WrapperApproach
loadDataSet, loadDataSet, newMethod, originalFeatureSet
Methods inherited from class unifeat.featureSelection.FeatureSelection
getSelectedFeatureSubset, setNumSelectedFeature, validate
-
Constructor Details
-
OptimalACO
Initializes the parameters- Parameters:
arguments
- array of parameters contains (path
,numFeatures
,classifierType
,selectedClassifierPan
,numIteration
,colonySize
,alphaParameter
,betaParameter
,evaporationRate
,kFolds
,initPheromone
,phiParameter
) in whichpath
is the path of the project,numFeatures
is the number of original features in the dataset,classifierType
is the classifier type for evaluating the fitness of a solution,selectedClassifierPan
is the selected classifier panel,numIteration
is the maximum number of allowed iterations that algorithm repeated,colonySize
is the size of colony of candidate solutions,alphaParameter
is the alpha parameter used in the state transition rule that shows the relative importance of the pheromone,betaParameter
is the beta parameter used in the state transition rule that shows the relative importance of heuristic information,evaporationRate
is the evaporation rate of the pheromone,kFolds
is the number of equal sized subsamples that is used in k-fold cross validation,initPheromone
is the initial value of the pheromone, andphiParameter
is the phi parameter used in the pheromone update rule for controlling the relative weight of classifier performance and feature subset length
-
-
Method Details
-
createSelectedFeatureSubset
protected int[] createSelectedFeatureSubset()This method creates the selected feature subset based on the best ant in the colony.- Specified by:
createSelectedFeatureSubset
in classBasicACO<Colony>
- Returns:
- the array of indices of the selected feature subset
-
evaluateFeatures
public void evaluateFeatures()Starts the feature selection process by optimal ant colony optimization (Optimal ACO) method- Specified by:
evaluateFeatures
in classFeatureSelection
-