Class BasicACO<ColonyType>
java.lang.Object
unifeat.featureSelection.FeatureSelection
unifeat.featureSelection.wrapper.WrapperApproach
unifeat.featureSelection.wrapper.ACOBasedMethods.BasicACO<ColonyType>
- Type Parameters:
ColonyType- the type of colony implemented in ACO algorithm
- Direct Known Subclasses:
OptimalACO
The abstract class contains the main methods and fields that are used in all
ACO-based feature selection methods.
- Author:
- Sina Tabakhi
- See Also:
-
Field Summary
FieldsFields 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 abstract int[]This method creates the selected feature subset based on the best ant in the colony.Methods inherited from class unifeat.featureSelection.wrapper.WrapperApproach
loadDataSet, loadDataSet, newMethod, originalFeatureSetMethods inherited from class unifeat.featureSelection.FeatureSelection
evaluateFeatures, getSelectedFeatureSubset, setNumSelectedFeature, validate
-
Field Details
-
colony
-
NUM_ITERATION
protected final int NUM_ITERATION -
K_FOLDS
protected final int K_FOLDS
-
-
Constructor Details
-
BasicACO
Initializes the parameters- Parameters:
arguments- array of parameters contains (path,numFeatures,classifierType,selectedClassifierPan,numIteration,colonySize,alphaParameter,betaParameter,evaporationRate,kFolds,initPheromone) 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, andinitPheromoneis the initial value of the pheromone
-
-
Method Details
-
createSelectedFeatureSubset
protected abstract int[] createSelectedFeatureSubset()This method creates the selected feature subset based on the best ant in the colony.- Returns:
- the array of indices of the selected feature subset
-