Class HPSO_LS
java.lang.Object
unifeat.featureSelection.FeatureSelection
unifeat.featureSelection.wrapper.WrapperApproach
unifeat.featureSelection.wrapper.PSOBasedMethods.BasicPSO<Swarm>
unifeat.featureSelection.wrapper.PSOBasedMethods.HPSO_LS.HPSO_LS
This java class is used to implement feature selection based on hybrid
particle swarm optimization method using local search (HPSO-LS) in which the
type of Swarm is extended from Swarm class.
- Author:
- Sina Tabakhi
- See Also:
-
Field Summary
Fields inherited from class unifeat.featureSelection.wrapper.PSOBasedMethods.BasicPSO
K_FOLDS, NUM_ITERATION, swarm
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 global best position in the swarm.void
Starts the feature selection process by hybrid particle swarm optimization method using local search (HPSO-LS)Methods inherited from class unifeat.featureSelection.wrapper.WrapperApproach
loadDataSet, loadDataSet, newMethod, originalFeatureSet
Methods inherited from class unifeat.featureSelection.FeatureSelection
getSelectedFeatureSubset, setNumSelectedFeature
-
Constructor Details
-
HPSO_LS
Initializes the parameters- Parameters:
arguments
- array of parameters contains (path
,numFeatures
,classifierType
,selectedClassifierPan
,numIteration
populationSize
,inertiaWeight
,parameter c1
,parameter c2
,startPosInterval
,endPosInterval
,minVelocity
,maxVelocity
,kFolds
,epsilon
,alpha
) 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,populationSize
is the size of population of candidate solutions,inertiaWeight
is the inertia weight in the velocity updating rule,parameter c1
is the acceleration constant in the velocity updating rule,parameter c2
is the acceleration constant in the velocity updating rule,startPosInterval
is the position interval start value,endPosInterval
is the position interval end value,minVelocity
is the velocity interval start value,maxVelocity
is the velocity interval end value,kFolds
is the number of equal sized subsamples that is used in k-fold cross validation,epsilon
is the epsilon parameter used in the subset size determining scheme, andalpha
is the alpha parameter used in the local search operation
-
-
Method Details
-
createSelectedFeatureSubset
protected int[] createSelectedFeatureSubset()This method creates the selected feature subset based on global best position in the swarm.- Specified by:
createSelectedFeatureSubset
in classBasicPSO<Swarm>
- Returns:
- the array of indices of the selected feature subset
-
evaluateFeatures
public void evaluateFeatures()Starts the feature selection process by hybrid particle swarm optimization method using local search (HPSO-LS)- Specified by:
evaluateFeatures
in classFeatureSelection
-