Package unifeat.featureSelection.wrapper
Class WrapperApproach
java.lang.Object
unifeat.featureSelection.FeatureSelection
unifeat.featureSelection.wrapper.WrapperApproach
The abstract class contains the main methods and fields that are used in all
 wrapper-based feature selection methods.
- Author:
- Sina Tabakhi
- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected String[]protected String[]protected final Stringprotected final StringFields inherited from class unifeat.featureSelection.FeatureSelectionnumClass, numFeatures, numSelectedFeature, selectedFeatureSubset, trainSet
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidloadDataSet(double[][] data, int numFeat, int numClasses) Loads the datasetvoidLoads the datasetstatic WrapperApproachnewMethod(WrapperType type, Object... arguments) This method creates new object from one of the classes that has been inherited from the WrapperApproach class according to type of the feature selection method.protected int[]This method creates an array of indices of features and returns it.Methods inherited from class unifeat.featureSelection.FeatureSelectionevaluateFeatures, getSelectedFeatureSubset, setNumSelectedFeature, validate
- 
Field Details- 
nameFeatures
- 
classLabel
- 
PROJECT_PATH
- 
TEMP_PATH
 
- 
- 
Constructor Details- 
WrapperApproachInitializes the parameters- Parameters:
- path- the path of the project
 
 
- 
- 
Method Details- 
loadDataSetLoads the dataset- Overrides:
- loadDataSetin class- FeatureSelection
- Parameters:
- ob- an object of the DatasetInfo class
 
- 
loadDataSetpublic void loadDataSet(double[][] data, int numFeat, int numClasses) Loads the dataset- Overrides:
- loadDataSetin class- FeatureSelection
- Parameters:
- data- the input dataset values
- numFeat- the number of features in the dataset
- numClasses- the number of classes in the dataset
 
- 
originalFeatureSetprotected int[] originalFeatureSet()This method creates an array of indices of features and returns it.- Returns:
- an array of features indices
 
- 
newMethodThis method creates new object from one of the classes that has been inherited from the WrapperApproach class according to type of the feature selection method.- Parameters:
- type- type of the wrapper feature selection method
- arguments- a list of arguments that is applied in the feature selection method
- Returns:
- the created object that has been inherited from the WrapperApproach class
 
 
-