public class OVO_SVM_RFE extends SVMBasedMethods
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 Details

  • Constructor Details

    • OVO_SVM_RFE

      public OVO_SVM_RFE(Object... arguments)
      Initializes the parameters
      Parameters:
      arguments - array of parameters contains (path, kernelType, Parameter c) in which path is the path of the project, kernelType is the type of kernel to use, and Parameter c is the complexity parameter C
    • OVO_SVM_RFE

      public OVO_SVM_RFE(String path, SVMKernelType kernelType, double c)
      Initializes the parameters
      Parameters:
      path - the path of the project
      kernelType - the type of kernel to use
      c - 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:
      evaluateFeatures in class FeatureSelection