Class GainRatio
java.lang.Object
unifeat.featureSelection.FeatureSelection
unifeat.featureSelection.FeatureWeighting
unifeat.featureSelection.filter.WeightedFilterApproach
unifeat.featureSelection.filter.supervised.GainRatio
This java class is used to implement the gain ratio 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 gain ratio(GR) 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
-
GainRatio
Initializes the parameters- Parameters:
arguments
- array of parameters contains (sizeSelectedFeatureSubset
) in whichsizeSelectedFeatureSubset
is the number of selected features
-
GainRatio
public GainRatio(int sizeSelectedFeatureSubset) Initializes the parameters- Parameters:
sizeSelectedFeatureSubset
- the number of selected features
-
-
Method Details
-
evaluateFeatures
public void evaluateFeatures()Starts the feature selection process by gain ratio(GR) method- Specified by:
evaluateFeatures
in classFeatureSelection
-