Class UFSACO
java.lang.Object
unifeat.featureSelection.FeatureSelection
unifeat.featureSelection.filter.FilterApproach
unifeat.featureSelection.filter.unsupervised.UFSACO
This java class is used to implement the unsupervised feature selection based
on ant colony optimization (UFSACO) method.
- Author:
- Sina Tabakhi
- See Also:
-
Field Summary
Fields inherited from class unifeat.featureSelection.FeatureSelection
numClass, numFeatures, numSelectedFeature, selectedFeatureSubset, trainSet -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidStarts the feature selection process by unsupervised feature selection based on ant colony optimization (UFSACO) methodvalidate()This method returns the potential errors in the input parameters.Methods inherited from class unifeat.featureSelection.filter.FilterApproach
newMethodMethods inherited from class unifeat.featureSelection.FeatureSelection
getSelectedFeatureSubset, loadDataSet, loadDataSet, setNumSelectedFeature
-
Constructor Details
-
UFSACO
Initializes the parameters- Parameters:
arguments- array of parameters contains (sizeSelectedFeatureSubset,initPheromone,numIterations,numAnt,numFeatureOfAnt,evaporationRate,betaParameter,q0_Parameter) in whichsizeSelectedFeatureSubsetis the number of selected features,initPheromoneis the initial value of the pheromone,numIterationsis the maximum number of iteration,numAntis the number of ants,numFeatureOfAntis the number of selected features by each ant in each iteration,evaporationRateis the evaporation rate of the pheromone,betaParameteris the beta parameter in the state transition rule, andq0_Parameteris the q0 parameter in the state transition rule
-
UFSACO
public UFSACO(int sizeSelectedFeatureSubset, double initPheromone, int numIterations, int numAnt, int numFeatureOfAnt, double evaporationRate, double betaParameter, double q0_Parameter) Initializes the parameters- Parameters:
sizeSelectedFeatureSubset- the number of selected featuresinitPheromone- the initial value of the pheromonenumIterations- the maximum number of iterationnumAnt- the number of antsnumFeatureOfAnt- the number of selected features by each ant in each iterationevaporationRate- the evaporation rate of the pheromonebetaParameter- the beta parameter in the state transition ruleq0_Parameter- the q0 parameter in the state transition rule
-
-
Method Details
-
evaluateFeatures
public void evaluateFeatures()Starts the feature selection process by unsupervised feature selection based on ant colony optimization (UFSACO) method- Specified by:
evaluateFeaturesin classFeatureSelection
-
validate
This method returns the potential errors in the input parameters.- Overrides:
validatein classFeatureSelection- Returns:
- a string contains the information about incorrect parameters
-