class SVM

Support Vector Machine.

Inheritance:


Public Fields

[more]DataSet* data
The dataset associated to the SVM.
[more]Kernel* kernel
The kernel associated to the SVM
[more]real C_cst
The "C" constant
[more]real b
[more]int* support_vectors
The support vectors
[more]int* real_index
The real index of the support vectors in the dataset
[more]int n_support_vectors
The number of support vectors
[more]int n_support_vectors_bound
The number of support vectors which are at the bound "C"

Public Methods

[more] SVM(Kernel* kernel_)
[more]bool bCompute()
Computes the b


Inherited from QCMachine:

Public Fields

oreal* Cup
oreal* Cdown
oreal eps_bornes
oint l
oreal* alpha
oreal* grad
oreal* y

Public Methods

ovirtual void checkSupportVectors()


Inherited from Machine:

Public Fields

oint n_inputs
oint n_outputs
oList* outputs

Public Methods

ovirtual void forward(List* inputs)
ovirtual void reset()


Inherited from Object:

Public Methods

ovirtual void init()
ovoid addOption(const char* name, int size, void* ptr, const char* help="", bool is_allowed_after_init=false)
ovoid addIOption(const char* name, int* ptr, int init_value, const char* help="", bool is_allowed_after_init=false)
ovoid addROption(const char* name, real* ptr, real init_value, const char* help="", bool is_allowed_after_init=false)
ovoid addBOption(const char* name, bool* ptr, bool init_value, const char* help="", bool is_allowed_after_init=false)
ovoid setOption(const char* name, void* ptr)
ovoid setIOption(const char* name, int option)
ovoid setROption(const char* name, real option)
ovoid setBOption(const char* name, bool option)
ovirtual void loadFILE(FILE* file)
ovirtual void saveFILE(FILE* file)
ovoid load(const char* filename)
ovoid save(const char* filename)


Documentation

Support Vector Machine.

The Q matrix of QCMachine is in this case , where is a kernel and is the i-th example of data/

The goal is to looking for the alpha and b which are the best in a SVM-sense.

The learning function is

Options:
"C" real trade off between the weight decay and the error [100]

oDataSet* data
The dataset associated to the SVM. (Given by the kernel)

oKernel* kernel
The kernel associated to the SVM

oreal C_cst
The "C" constant

oreal b

oint* support_vectors
The support vectors

oint* real_index
The real index of the support vectors in the dataset

oint n_support_vectors
The number of support vectors

oint n_support_vectors_bound
The number of support vectors which are at the bound "C"

o SVM(Kernel* kernel_)

obool bCompute()
Computes the b


Direct child classes:
SVMRegression
SVMClassification
Author:
Ronan Collobert (collober@iro.umontreal.ca)

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.