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_ITERATIONFields 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 best ant in the colony.voidStarts the feature selection process by optimal ant colony optimization (Optimal ACO) methodMethods inherited from class unifeat.featureSelection.wrapper.WrapperApproach
loadDataSet, loadDataSet, newMethod, originalFeatureSetMethods 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 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,numIterationis the maximum number of allowed iterations that algorithm repeated,colonySizeis the size of colony of candidate solutions,alphaParameteris the alpha parameter used in the state transition rule that shows the relative importance of the pheromone,betaParameteris the beta parameter used in the state transition rule that shows the relative importance of heuristic information,evaporationRateis the evaporation rate of the pheromone,kFoldsis the number of equal sized subsamples that is used in k-fold cross validation,initPheromoneis the initial value of the pheromone, andphiParameteris 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:
createSelectedFeatureSubsetin 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:
evaluateFeaturesin classFeatureSelection
-