Class OVA_SVM_RFE
java.lang.Object
unifeat.featureSelection.FeatureSelection
unifeat.featureSelection.embedded.EmbeddedApproach
unifeat.featureSelection.embedded.SVMBasedMethods.SVMBasedMethods
unifeat.featureSelection.embedded.SVMBasedMethods.OVA_SVM_RFE
This java class is used to implement OVA_SVM_RFE method for multiclass
classification based on SVM_RFE method (support vector machine method based
on recursive feature elimination) in which One-Versus-All (OVA) strategy is
applied to construct binary classifiers.
- Author:
- Sina Tabakhi
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprivate final double
private final double
Fields inherited from class unifeat.featureSelection.embedded.SVMBasedMethods.SVMBasedMethods
classLabelInTrainSet, kernelType, parameterC, TEMP_PATH
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
ConstructorDescriptionOVA_SVM_RFE
(Object... arguments) Initializes the parametersOVA_SVM_RFE
(String path, SVMKernelType kernelType, double c) Initializes the parameters -
Method Summary
Modifier and TypeMethodDescriptionvoid
Starts the feature selection process by support vector machine method based on recursive feature elimination using One-Versus-All strategy (OVA_SVM_RFE)private double[]
getFeaturesWeights
(int[] selectedFeature) Generates binary classifiers (SVM by applying One-Versus-All (OVA) strategy) using input data and based on selected feature subset, and finally returns the weights of featuresMethods inherited from class unifeat.featureSelection.embedded.SVMBasedMethods.SVMBasedMethods
buildSVM_OneAgainstOne, buildSVM_OneAgainstRest, createClassLabel
Methods inherited from class unifeat.featureSelection.embedded.EmbeddedApproach
loadDataSet, loadDataSet, newMethod, originalFeatureSet
Methods inherited from class unifeat.featureSelection.FeatureSelection
getSelectedFeatureSubset, setNumSelectedFeature, validate
-
Field Details
-
ERROR_DENOMINATOR
private final double ERROR_DENOMINATOR- See Also:
-
ERROR_TWO_CLASS_PROBLEM
private final double ERROR_TWO_CLASS_PROBLEM- See Also:
-
-
Constructor Details
-
OVA_SVM_RFE
Initializes the parameters- Parameters:
arguments
- array of parameters contains (path
,kernelType
,Parameter c
) in whichpath
is the path of the project,kernelType
is the type of kernel to use, andParameter c
is the complexity parameter C
-
OVA_SVM_RFE
Initializes the parameters- Parameters:
path
- the path of the projectkernelType
- the type of kernel to usec
- the complexity parameter C
-
-
Method Details
-
getFeaturesWeights
private double[] getFeaturesWeights(int[] selectedFeature) Generates binary classifiers (SVM by applying One-Versus-All (OVA) strategy) using input data and based on selected feature subset, and finally returns the weights of features- Parameters:
selectedFeature
- an array of indices of the selected feature subset- Returns:
- an array of the weights of features
-
evaluateFeatures
public void evaluateFeatures()Starts the feature selection process by support vector machine method based on recursive feature elimination using One-Versus-All strategy (OVA_SVM_RFE)- Specified by:
evaluateFeatures
in classFeatureSelection
-