|
SHOGUN v0.10.0
|
A generic Support Vector Machine Interface.
A support vector machine is defined as
where
is the number of training examples
are the weights assigned to each training example
is the kernel and
the bias.
Using an a-priori choosen kernel, the
and bias are determined by solving the following quadratic program
here C is a pre-specified regularization parameter.

| CSVM | ( | int32_t | num_sv = 0 | ) |
| float64_t compute_svm_dual_objective | ( | ) |
| float64_t compute_svm_primal_objective | ( | ) |
| float64_t * get_linear_term_array | ( | ) | [protected, virtual] |
| virtual const char* get_name | ( | void | ) | const [virtual] |
Reimplemented from CKernelMachine.
Reimplemented in CMKL, CGMNPSVM, CGNPPSVM, CGPBTSVM, CLaRank, CLibSVM, CLibSVMMultiClass, CLibSVMOneClass, CMPDSVM, CScatterSVM, and CLibSVR.
| bool get_shrinking_enabled | ( | ) |
| float64_t get_tube_epsilon | ( | ) |
| bool load | ( | FILE * | svm_file | ) | [virtual] |
load a SVM from file
| svm_file | the file handle |
Reimplemented from CClassifier.
Reimplemented in CMultiClassSVM.
| bool save | ( | FILE * | svm_file | ) | [virtual] |
write a SVM to a file
| svm_file | the file handle |
Reimplemented from CClassifier.
Reimplemented in CMultiClassSVM.
| void set_defaults | ( | int32_t | num_sv = 0 | ) |
| void set_epsilon | ( | float64_t | eps | ) |
| void set_objective | ( | float64_t | v | ) |
| void set_qpsize | ( | int32_t | qps | ) |
| void set_shrinking_enabled | ( | bool | enable | ) |
| void set_tube_epsilon | ( | float64_t | eps | ) |
float64_t* m_linear_term [protected] |
index_t m_linear_term_len [protected] |
bool svm_loaded [protected] |
float64_t tube_epsilon [protected] |
bool use_shrinking [protected] |