Class RRFS
java.lang.Object
unifeat.featureSelection.FeatureSelection
unifeat.featureSelection.filter.FilterApproach
unifeat.featureSelection.filter.unsupervised.RRFS
This java class is used to implement the relevance-redundancy feature
selection(RRFS) method. Also, it is the unsupervised version of the RRFS.
- Author:
- Sina Tabakhi
- See Also:
-
Field Summary
Fields inherited from class unifeat.featureSelection.FeatureSelection
numClass, numFeatures, numSelectedFeature, selectedFeatureSubset, trainSet
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate double
computeMAD
(int indexFeature, double mean) Computes the mean absolute difference(MAD) values of the featuresvoid
Starts the feature selection process by relevance-redundancy feature selection(RRFS) methodMethods inherited from class unifeat.featureSelection.filter.FilterApproach
newMethod
Methods inherited from class unifeat.featureSelection.FeatureSelection
getSelectedFeatureSubset, loadDataSet, loadDataSet, setNumSelectedFeature, validate
-
Field Details
-
MAX_SIM_VALUE
private final double MAX_SIM_VALUE
-
-
Constructor Details
-
RRFS
Initializes the parameters- Parameters:
arguments
- array of parameters contains (sizeSelectedFeatureSubset
,maxSimilarity
) in whichsizeSelectedFeatureSubset
is the number of selected features, andmaxSimilarity
is maximum allowed similarity between two features
-
RRFS
public RRFS(int sizeSelectedFeatureSubset, double maxSimilarity) Initializes the parameters- Parameters:
sizeSelectedFeatureSubset
- the number of selected featuresmaxSimilarity
- maximum allowed similarity between two features
-
-
Method Details
-
computeMAD
private double computeMAD(int indexFeature, double mean) Computes the mean absolute difference(MAD) values of the features- Parameters:
indexFeature
- index of the given featuremean
- the mean value of the given feature (indexFeature)- Returns:
- the mean absolute difference
-
evaluateFeatures
public void evaluateFeatures()Starts the feature selection process by relevance-redundancy feature selection(RRFS) method- Specified by:
evaluateFeatures
in classFeatureSelection
-