|
SHOGUN v0.9.3
|
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 | ( | ) |
| std::vector< float64_t > get_linear_term | ( | ) | [virtual] |
| float64_t * get_linear_term_array | ( | ) | [protected, virtual] |
| virtual const char* get_name | ( | ) | const [virtual] |
Implements CSGObject.
Reimplemented in CMKL, CDomainAdaptationSVM, CGMNPSVM, CGNPPSVM, CGPBTSVM, CLaRank, CLibSVM, CLibSVMMultiClass, CLibSVMOneClass, CMPDSVM, CScatterSVM, CSVMLight, CLibSVR, and CSVRLight.
| 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_linear_term | ( | std::vector< float64_t > | lin | ) | [virtual] |
| 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 | ) |
std::vector<float64_t> linear_term [protected] |
CParameter parameters [protected] |
bool svm_loaded [protected] |
float64_t tube_epsilon [protected] |
bool use_shrinking [protected] |