public class SVM_RFE extends SVMBasedMethods
This java class is used to implement support vector machine method based on recursive feature elimination (SVM_RFE).
Author:
Sina Tabakhi
See Also:
  • Constructor Details

    • SVM_RFE

      public 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
    • SVM_RFE

      public 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 a classifier (SVM) using input data and based on selected feature subset, and finally returns the weights of features based on ranking criterion (weight magnitude)
      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 (SVM_RFE)
      Specified by:
      evaluateFeatures in class FeatureSelection
    • validate

      public String validate()
      This method returns the potential errors in the input parameters.
      Overrides:
      validate in class FeatureSelection
      Returns:
      a string contains the information about incorrect parameters