Class SymmetricalUncertainty
java.lang.Object
unifeat.featureSelection.FeatureSelection
unifeat.featureSelection.FeatureWeighting
unifeat.featureSelection.filter.WeightedFilterApproach
unifeat.featureSelection.filter.supervised.SymmetricalUncertainty
This java class is used to implement the symmetrical uncertainty 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
ConstructorDescriptionSymmetricalUncertainty
(int sizeSelectedFeatureSubset) Initializes the parametersSymmetricalUncertainty
(Object... arguments) Initializes the parameters -
Method Summary
Modifier and TypeMethodDescriptionprivate double
computeEntropy
(int indexStart, int indexEnd) Computes the entropy of the data given by start and end indicesvoid
Starts the feature selection process by symmetrical uncertainty(SU) 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
-
Field Details
-
ERROR_DENOMINATOR
private final double ERROR_DENOMINATOR- See Also:
-
-
Constructor Details
-
SymmetricalUncertainty
Initializes the parameters- Parameters:
arguments
- array of parameters contains (sizeSelectedFeatureSubset
) in whichsizeSelectedFeatureSubset
is the number of selected features
-
SymmetricalUncertainty
public SymmetricalUncertainty(int sizeSelectedFeatureSubset) Initializes the parameters- Parameters:
sizeSelectedFeatureSubset
- the number of selected features
-
-
Method Details
-
computeEntropy
private double computeEntropy(int indexStart, int indexEnd) Computes the entropy of the data given by start and end indices- Parameters:
indexStart
- the start index of the datasetindexEnd
- the end index of the dataset- Returns:
- the entropy value
-
evaluateFeatures
public void evaluateFeatures()Starts the feature selection process by symmetrical uncertainty(SU) method- Specified by:
evaluateFeatures
in classFeatureSelection
-