Class TreeBasedMethods
java.lang.Object
unifeat.featureSelection.FeatureSelection
unifeat.featureSelection.embedded.EmbeddedApproach
unifeat.featureSelection.embedded.TreeBasedMethods.TreeBasedMethods
- Direct Known Subclasses:
DecisionTreeBasedMethod
,RandomForestMethod
The abstract class contains the main methods and fields that are used in all
Tree-based feature selection methods. This class inherits from
EmbeddedApproach class.
- Author:
- Sina Tabakhi
- See Also:
-
Field Summary
Fields inherited from class unifeat.featureSelection.embedded.EmbeddedApproach
classLabel, nameFeatures, PROJECT_PATH
Fields inherited from class unifeat.featureSelection.FeatureSelection
numClass, numFeatures, numSelectedFeature, selectedFeatureSubset, trainSet
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract String
buildClassifier
(weka.core.Instances dataTrain) Generates a classifier using input dataprotected abstract void
selectedFeatureSubset
(String tree) Finds the feature subset from the nodes of the created treeMethods inherited from class unifeat.featureSelection.embedded.EmbeddedApproach
loadDataSet, loadDataSet, newMethod, originalFeatureSet
Methods inherited from class unifeat.featureSelection.FeatureSelection
evaluateFeatures, getSelectedFeatureSubset, setNumSelectedFeature, validate
-
Field Details
-
TEMP_PATH
-
TREE_TYPE
-
-
Constructor Details
-
TreeBasedMethods
Initializes the parameters- Parameters:
arguments
- array of parameter contains (path
,tree type
) in whichpath
is the path of the project, andtree type
is the type of tree
-
-
Method Details
-
selectedFeatureSubset
Finds the feature subset from the nodes of the created tree- Parameters:
tree
- the generated tree based on the train set
-
buildClassifier
Generates a classifier using input data- Parameters:
dataTrain
- the data to train the classifier- Returns:
- the output of the generated classifier
-