Class EmbeddedApproach
java.lang.Object
unifeat.featureSelection.FeatureSelection
unifeat.featureSelection.embedded.EmbeddedApproach
- Direct Known Subclasses:
SVMBasedMethods
,TreeBasedMethods
The abstract class contains the main methods and fields that are used in all
embedded-based feature selection methods.
- 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 TypeMethodDescriptionvoid
loadDataSet
(double[][] data, int numFeat, int numClasses) Loads the datasetvoid
Loads the datasetstatic EmbeddedApproach
newMethod
(EmbeddedType type, Object... arguments) This method creates new object from one of the classes that has been inherited from the EmbeddedApproach 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.FeatureSelection
evaluateFeatures, getSelectedFeatureSubset, setNumSelectedFeature, validate
-
Field Details
-
nameFeatures
-
classLabel
-
PROJECT_PATH
-
-
Constructor Details
-
EmbeddedApproach
Initializes the parameters- Parameters:
path
- the path of the project
-
-
Method Details
-
loadDataSet
Loads the dataset- Overrides:
loadDataSet
in classFeatureSelection
- Parameters:
ob
- an object of the DatasetInfo class
-
loadDataSet
public void loadDataSet(double[][] data, int numFeat, int numClasses) Loads the dataset- Overrides:
loadDataSet
in classFeatureSelection
- Parameters:
data
- the input dataset valuesnumFeat
- the number of features in the datasetnumClasses
- the number of classes in the dataset
-
originalFeatureSet
protected int[] originalFeatureSet()This method creates an array of indices of features and returns it.- Returns:
- an array of features indices
-
newMethod
This method creates new object from one of the classes that has been inherited from the EmbeddedApproach class according to type of the feature selection method.- Parameters:
type
- type of the embedded feature selection methodarguments
- a list of arguments that is applied in the feature selection method- Returns:
- the created object that has been inherited from the EmbeddedApproach class
-