class SVM

Support Vector Machine.

Inheritance:


Public Fields

[more]Allocator* sv_allocator
To allocate all stuff related to support vectors
[more]IOSequenceArray* io_sequence_array
Give the sequence-format
[more]DataSet* data
The dataset associated to the SVM
[more]Kernel* kernel
The kernel associated to the SVM
[more]real b
[more]int* support_vectors
The support vectors
[more]real* sv_alpha
sv_alpha[i] is the weight of the SV i
[more]Sequence** sv_sequences
SV sequences
[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_, IOSequenceArray* io_sequence_array_=NULL)
[more]bool bCompute()
Computes the b


Inherited from QCMachine:

Public Fields

oreal* Cup
oreal* Cdown
oreal bound_eps
oint n_alpha
oreal* alpha
oreal* grad
oreal* y
oQCCache* cache

Public Methods

ovirtual void checkSupportVectors()


Inherited from Machine:

Public Fields

oSequence* outputs

Public Methods

ovirtual void forward(Sequence* sequence)
ovirtual void reset()
ovirtual void setDataSet(DataSet* dataset_)


Inherited from Object:

Public Fields

oAllocator* allocator

Public Methods

ovoid addOption(const char* name, int size, void* ptr, const char* help="")
ovoid addIOption(const char* name, int* ptr, int init_value, const char* help="")
ovoid addROption(const char* name, real* ptr, real init_value, const char* help="")
ovoid addBOption(const char* name, bool* ptr, bool init_value, const char* help="")
ovoid addOOption(const char* name, Object** ptr, Object* init_value, const char* help="")
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)
ovoid setOOption(const char* name, Object* option)
ovirtual void loadXFile(XFile* file)
ovirtual void saveXFile(XFile* file)
ovoid load(const char* filename)
ovoid save(const char* filename)
ovoid* operator new(size_t size, Allocator* allocator_=NULL)
ovoid* operator new(size_t size, Allocator* allocator_, void* ptr_)
ovoid operator delete(void* ptr)


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

oAllocator* sv_allocator
To allocate all stuff related to support vectors

oIOSequenceArray* io_sequence_array
Give the sequence-format

oDataSet* data
The dataset associated to the SVM

oKernel* kernel
The kernel associated to the SVM

oreal b

oint* support_vectors
The support vectors

oreal* sv_alpha
sv_alpha[i] is the weight of the SV i

oSequence** sv_sequences
SV sequences

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_, IOSequenceArray* io_sequence_array_=NULL)

obool bCompute()
Computes the b


Direct child classes:
SVMRegression
SVMClassification
Author:
Ronan Collobert (collober@idiap.ch)

Alphabetic index HTML hierarchy of classes or Java



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