Package unifeat.featureSelection.filter
Class WeightedFilterApproach
java.lang.Object
unifeat.featureSelection.FeatureSelection
unifeat.featureSelection.FeatureWeighting
unifeat.featureSelection.filter.WeightedFilterApproach
- Direct Known Subclasses:
FisherScore
,GainRatio
,GiniIndex
,InformationGain
,LaplacianScore
,LaplacianScore
,SymmetricalUncertainty
,TermVariance
The abstract class contains the main methods and fields that are used in all
weighted filter feature selection methods.
- 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
ConstructorDescriptionWeightedFilterApproach
(int sizeSelectedFeatureSubset) Initializes the parameters -
Method Summary
Modifier and TypeMethodDescriptionstatic WeightedFilterApproach
newMethod
(FilterType type, boolean isSupervised, Object... arguments) This method creates new object from one of the classes that has been inherited from the WeightedFilterApproach class according to type of the feature selection method.Methods inherited from class unifeat.featureSelection.FeatureWeighting
getFeatureValues
Methods inherited from class unifeat.featureSelection.FeatureSelection
evaluateFeatures, getSelectedFeatureSubset, loadDataSet, loadDataSet, setNumSelectedFeature, validate
-
Constructor Details
-
WeightedFilterApproach
public WeightedFilterApproach(int sizeSelectedFeatureSubset) Initializes the parameters- Parameters:
sizeSelectedFeatureSubset
- the size of selected features subset
-
-
Method Details
-
newMethod
public static WeightedFilterApproach newMethod(FilterType type, boolean isSupervised, Object... arguments) This method creates new object from one of the classes that has been inherited from the WeightedFilterApproach class according to type of the feature selection method.- Parameters:
type
- type of the weighted filter feature selection methodisSupervised
- shows whether a method is supervised or unsupervisedarguments
- a list of arguments that is applied in the feature selection method- Returns:
- the created object that has been inherited from the WeightedFilterApproach class
-