public class MSVM_RFE extends SVMBasedMethods
This java class is used to implement MSVM_RFE method for binary classification based on SVM_RFE method (support vector machine method based on recursive feature elimination) in which multiple linear SVMs trained on subsamples of the original training data. K-fold cross validation is used as the resampling method.
Author:
Sina Tabakhi
See Also:
  • Constructor Details

    • MSVM_RFE

      public MSVM_RFE(Object... arguments)
      Initializes the parameters
      Parameters:
      arguments - array of parameters contains (path, kernelType, Parameter c, kFoldValue, numRun) in which path is the path of the project, kernelType is the type of kernel to use, Parameter c is the complexity parameter C, kFoldValue is the number of subsamples in k-fold cross validation, and numRun is the number of multiple runs of k-fold CV
    • MSVM_RFE

      public MSVM_RFE(String path, SVMKernelType kernelType, double c, int kFoldValue, int numRun)
      Initializes the parameters
      Parameters:
      path - the path of the project
      kernelType - the type of kernel to use
      c - the complexity parameter C
      kFoldValue - the number of subsamples in k-fold cross validation
      numRun - the number of multiple runs of k-fold CV
  • Method Details

    • buildSVM_KFoldCrossValidation

      protected double[][] buildSVM_KFoldCrossValidation(int[] selectedFeature)
      Generates binary classifiers (SVM by applying k-fold cross validation resampling strategy) using input data and based on selected feature subset.
      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 multiple support vector machine method based on recursive feature elimination using k-fold cross validation resampling strategy (MSVM_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