Imp
[using it]
Interface Manipulation Package v4.0 (2008-06-25) a-projector ©copyright Author


imp.classifier
Class SvmClassifier

java.lang.Object
  extended by imp.classifier.Classifier
      extended by imp.classifier.SvmClassifier

public class SvmClassifier
extends Classifier

Defines a standard C-SVM classifier.

This is a direct interface with 1-to-1 SVM multi-class classifier developed by Chih-Chung Chang and Chih-Jen Lin as a free-ware open-source software, thanks to their courtesy. It is included in the present bundle.
Only a simple interface is proposed here.
Please refer to the on-line doc for details.


Nested Class Summary
 
Nested classes/interfaces inherited from class imp.classifier.Classifier
Classifier.Data
 
Constructor Summary
SvmClassifier()
          Constructs a SVM classifier.
 
Method Summary
 SvmClassifier setParameters(double C, String type, int degree)
          Defines the classifiers parameters and return this.
 
Methods inherited from class imp.classifier.Classifier
add, getCategory, getData, getMargin, getName, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SvmClassifier

public SvmClassifier()
Constructs a SVM classifier.

Method Detail

setParameters

public SvmClassifier setParameters(double C,
                                   String type,
                                   int degree)
Defines the classifiers parameters and return this.

Parameters:
C - [optional, default is 1] define the error tolerance parameter.
type - [optional, default is "Linear"] kernel type : "Linear", "Polynomial", Radial Basis" or "Sigmoid".
degree - [optional, default is 1] kernel degree 1 to .. a few.