classifier
Class SVMOptions

java.lang.Object
  extended by classifier.SVMOptions
All Implemented Interfaces:
ClassifierOptions

public class SVMOptions
extends java.lang.Object
implements ClassifierOptions

Class defining various classifier options that are specific to Support vector machines. Access to variables is public for easier implementation.

Author:
Michiel Van Bel

Nested Class Summary
static class SVMOptions.KERNEL_TYPE
          The different kernel functions.
 
Field Summary
 ClassificationAction.CLASSIFIERS classifier
          The type of classifier.
 double coeff
          for polynomial and sigmoid kernel
 double complexity
          Complexity of the SVM
 double degree
          Degree, only applicable for polynomial kernel functions
 double gamma
          for polynomial, rbf and sigmoid kernel function
 SVMOptions.KERNEL_TYPE kernel_type
          Kernel function type
 
Constructor Summary
SVMOptions()
           
 
Method Summary
 boolean setParameters(java.lang.String[] params)
          Sets classifier parameters by parsing them from an array of strings.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

complexity

public double complexity
Complexity of the SVM


kernel_type

public SVMOptions.KERNEL_TYPE kernel_type
Kernel function type


degree

public double degree
Degree, only applicable for polynomial kernel functions


gamma

public double gamma
for polynomial, rbf and sigmoid kernel function


coeff

public double coeff
for polynomial and sigmoid kernel


classifier

public ClassificationAction.CLASSIFIERS classifier
The type of classifier.

Constructor Detail

SVMOptions

public SVMOptions()
Method Detail

setParameters

public boolean setParameters(java.lang.String[] params)
Sets classifier parameters by parsing them from an array of strings.

Specified by:
setParameters in interface ClassifierOptions
Parameters:
params - An array of strings containing the various parameters and its values.
Returns:
Whether or not setting the parameters succeeded.