public class OptimalACO extends BasicACO<Colony>
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:
  • Constructor Details

    • OptimalACO

      public OptimalACO(Object... arguments)
      Initializes the parameters
      Parameters:
      arguments - array of parameters contains (path, numFeatures, classifierType, selectedClassifierPan, numIteration, colonySize, alphaParameter, betaParameter, evaporationRate, kFolds, initPheromone, phiParameter) in which path 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, and phiParameter 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 class BasicACO<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 class FeatureSelection