Class OVO_SVM_RFE
java.lang.Object
unifeat.featureSelection.FeatureSelection
unifeat.featureSelection.embedded.EmbeddedApproach
unifeat.featureSelection.embedded.SVMBasedMethods.SVMBasedMethods
unifeat.featureSelection.embedded.SVMBasedMethods.OVO_SVM_RFE
This java class is used to implement OVO_SVM_RFE method for multiclass
classification based on SVM_RFE method (support vector machine method based
on recursive feature elimination) in which One-Versus-One (OVO) strategy is
applied to construct binary classifiers.
- Author:
- Sina Tabakhi
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final doubleprivate final doubleFields inherited from class unifeat.featureSelection.embedded.SVMBasedMethods.SVMBasedMethods
classLabelInTrainSet, kernelType, parameterC, TEMP_PATHFields inherited from class unifeat.featureSelection.embedded.EmbeddedApproach
classLabel, nameFeatures, PROJECT_PATHFields inherited from class unifeat.featureSelection.FeatureSelection
numClass, numFeatures, numSelectedFeature, selectedFeatureSubset, trainSet -
Constructor Summary
ConstructorsConstructorDescriptionOVO_SVM_RFE(Object... arguments) Initializes the parametersOVO_SVM_RFE(String path, SVMKernelType kernelType, double c) Initializes the parameters -
Method Summary
Modifier and TypeMethodDescriptionvoidStarts the feature selection process by support vector machine method based on recursive feature elimination using One-Versus-One strategy (OVO_SVM_RFE)private double[]getFeaturesWeights(int[] selectedFeature) Generates binary classifiers (SVM by applying One-Versus-One (OVO) 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, createClassLabelMethods inherited from class unifeat.featureSelection.embedded.EmbeddedApproach
loadDataSet, loadDataSet, newMethod, originalFeatureSetMethods 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
-
OVO_SVM_RFE
Initializes the parameters- Parameters:
arguments- array of parameters contains (path,kernelType,Parameter c) in whichpathis the path of the project,kernelTypeis the type of kernel to use, andParameter cis the complexity parameter C
-
OVO_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-One (OVO) 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-One strategy (OVO_SVM_RFE)- Specified by:
evaluateFeaturesin classFeatureSelection
-