Class MSVM_RFEPanel

All Implemented Interfaces:
ActionListener, KeyListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants

public class MSVM_RFEPanel extends ParameterPanel
This java class is used to create and show a panel for the parameter settings of the multiple support vector machine method based on recursive feature elimination (MSVM_RFE).
Author:
Sina Tabakhi
See Also:
  • Field Details

    • lbl_kernel

      JLabel lbl_kernel
    • lbl_parameterC

      JLabel lbl_parameterC
    • lbl_parameterCError

      JLabel lbl_parameterCError
    • lbl_numFold

      JLabel lbl_numFold
    • lbl_numFoldError

      JLabel lbl_numFoldError
    • lbl_numRun

      JLabel lbl_numRun
    • lbl_numRunError

      JLabel lbl_numRunError
    • cb_kernel

      JComboBox cb_kernel
    • txt_parameterC

      JTextField txt_parameterC
    • txt_numFold

      JTextField txt_numFold
    • txt_numRun

      JTextField txt_numRun
    • typeKernel

      private SVMKernelType typeKernel
    • parameterC

      private double parameterC
    • numFold

      private int numFold
    • numRun

      private int numRun
    • DEFAULT_TYPE_KERNEL

      private static final SVMKernelType DEFAULT_TYPE_KERNEL
    • DEFAULT_PARAMETER_C

      private static final double DEFAULT_PARAMETER_C
      See Also:
    • DEFAULT_NUM_FOLD

      private static final int DEFAULT_NUM_FOLD
      See Also:
    • DEFAULT_NUM_RUN

      private static final int DEFAULT_NUM_RUN
      See Also:
  • Constructor Details

    • MSVM_RFEPanel

      public MSVM_RFEPanel()
      Creates new form MSVM_RFEPanel. This method is called from within the constructor to initialize the form.
  • Method Details

    • keyReleased

      public void keyReleased(KeyEvent e)
      The listener method for receiving keyboard events (keystrokes). Invoked when a key has been released.
      Specified by:
      keyReleased in interface KeyListener
      Specified by:
      keyReleased in class ParameterPanel
      Parameters:
      e - an action event
    • btn_okActionPerformed

      protected void btn_okActionPerformed(ActionEvent e)
      This method sets an action for the btn_ok button.
      Overrides:
      btn_okActionPerformed in class ParameterPanel
      Parameters:
      e - an action event
    • getKernel

      public SVMKernelType getKernel()
      This method returns the name of kernel.
      Returns:
      the Kernel parameter
    • setKernel

      public void setKernel(SVMKernelType kernelName)
      This method sets the name of kernel.
      Parameters:
      kernelName - the name of kernel
    • getParameterC

      public double getParameterC()
      This method returns the complexity parameter C.
      Returns:
      the C parameter
    • setParameterC

      public void setParameterC(double c)
      This method sets the complexity parameter C.
      Parameters:
      c - the complexity parameter C
    • getNumFold

      public int getNumFold()
      This method returns the number of subsamples value.
      Returns:
      the numFold parameter
    • setNumFold

      public void setNumFold(int numFold)
      This method sets the number of subsamples value.
      Parameters:
      numFold - the number of subsamples value
    • getNumRun

      public int getNumRun()
      This method returns the number of runs value.
      Returns:
      the numRun parameter
    • setNumRun

      public void setNumRun(int numRun)
      This method sets the number of runs value.
      Parameters:
      numRun - the number of runs value
    • setDefaultValue

      public void setDefaultValue()
      Sets the default values of the MSVM_RFE parameters
    • setUserValue

      public void setUserValue(SVMKernelType type, double c, int numFold, int numRun)
      Sets the last values of the MSVM_RFE parameters entered by user
      Parameters:
      type - the name of the kernel
      c - the complexity parameter C
      numFold - the number of subsamples in k-fold cross validation
      numRun - the number of multiple runs of k-fold CV
    • setEnableKernelType

      public void setEnableKernelType(boolean status)
      Sets the status of the kernel's combo box
      Parameters:
      status - the status of the kernel