Package unifeat.featureSelection
Class FeatureWeighting
java.lang.Object
unifeat.featureSelection.FeatureSelection
unifeat.featureSelection.FeatureWeighting
- Direct Known Subclasses:
WeightedFilterApproach
The abstract class contains the main methods and fields that are used in all
feature weighting methods. This class inherits from FeatureSelection class.
- 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 TypeMethodDescriptiondouble[]
This method returns the weights of features computed by the feature weighting method.Methods inherited from class unifeat.featureSelection.FeatureSelection
evaluateFeatures, getSelectedFeatureSubset, loadDataSet, loadDataSet, setNumSelectedFeature, validate
-
Field Details
-
featureValues
protected double[] featureValues
-
-
Constructor Details
-
FeatureWeighting
public FeatureWeighting()Initializes the parameters
-
-
Method Details
-
getFeatureValues
public double[] getFeatureValues()This method returns the weights of features computed by the feature weighting method.- Returns:
- an array of weights of features
-