Class GiniIndex
java.lang.Object
unifeat.featureSelection.FeatureSelection
unifeat.featureSelection.FeatureWeighting
unifeat.featureSelection.filter.WeightedFilterApproach
unifeat.featureSelection.filter.supervised.GiniIndex
This java class is used to implement the Gini index method.
- Author:
- Sina Tabakhi
- See Also:
-
Field Summary
Fields inherited from class unifeat.featureSelection.FeatureWeighting
featureValues
Fields inherited from class unifeat.featureSelection.FeatureSelection
numClass, numFeatures, numSelectedFeature, selectedFeatureSubset, trainSet
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Starts the feature selection process by Gini index(GI) methodMethods inherited from class unifeat.featureSelection.filter.WeightedFilterApproach
newMethod
Methods inherited from class unifeat.featureSelection.FeatureWeighting
getFeatureValues
Methods inherited from class unifeat.featureSelection.FeatureSelection
getSelectedFeatureSubset, loadDataSet, loadDataSet, setNumSelectedFeature, validate
-
Constructor Details
-
GiniIndex
Initializes the parameters- Parameters:
arguments
- array of parameters contains (sizeSelectedFeatureSubset
) in whichsizeSelectedFeatureSubset
is the number of selected features
-
GiniIndex
public GiniIndex(int sizeSelectedFeatureSubset) Initializes the parameters- Parameters:
sizeSelectedFeatureSubset
- the number of selected features
-
-
Method Details
-
evaluateFeatures
public void evaluateFeatures()Starts the feature selection process by Gini index(GI) method- Specified by:
evaluateFeatures
in classFeatureSelection
-