SHOGUN
v1.1.0
|
ScatterSVM - Multiclass SVM.
The ScatterSVM is an unpublished experimental true multiclass SVM. Details are availabe in the following technical report.
This code is currently experimental.
Robert Jenssen and Marius Kloft and Alexander Zien and S"oren Sonnenburg and Klaus-Robert M"{u}ller, A Multi-Class Support Vector Machine Based on Scatter Criteria, TR 014-2009 TU Berlin, 2009
Definition at line 50 of file ScatterSVM.h.
Protected Member Functions | |
virtual bool | train_machine (CFeatures *data=NULL) |
Protected Attributes | |
SCATTER_TYPE | scatter_type |
svm_problem | problem |
svm_parameter | param |
struct svm_model * | model |
float64_t * | norm_wc |
float64_t * | norm_wcw |
float64_t | rho |
int32_t | m_num_classes |
![]() | |
EMultiClassSVM | multiclass_type |
int32_t | m_num_classes |
int32_t | m_num_svms |
CSVM ** | m_svms |
![]() | |
SGVector< float64_t > | m_linear_term |
bool | svm_loaded |
float64_t | epsilon |
float64_t | tube_epsilon |
float64_t | nu |
float64_t | C1 |
float64_t | C2 |
float64_t | objective |
int32_t | qpsize |
bool | use_shrinking |
bool(* | callback )(CMKL *mkl, const float64_t *sumw, const float64_t suma) |
CMKL * | mkl |
![]() | |
CKernel * | kernel |
bool | use_batch_computation |
bool | use_linadd |
bool | use_bias |
float64_t | m_bias |
SGVector< float64_t > | m_alpha |
SGVector< int32_t > | m_svs |
![]() | |
float64_t | max_train_time |
CLabels * | labels |
ESolverType | solver_type |
bool | m_store_model_features |
Additional Inherited Members | |
![]() | |
static void * | apply_helper (void *p) |
![]() | |
SGIO * | io |
Parallel * | parallel |
Version * | version |
Parameter * | m_parameters |
Parameter * | m_model_selection_parameters |
CScatterSVM | ( | ) |
default constructor
Definition at line 20 of file ScatterSVM.cpp.
CScatterSVM | ( | SCATTER_TYPE | type | ) |
constructor
Definition at line 27 of file ScatterSVM.cpp.
CScatterSVM | ( | float64_t | C, |
CKernel * | k, | ||
CLabels * | lab | ||
) |
constructor (using NO_BIAS as default scatter_type)
C | constant C |
k | kernel |
lab | labels |
Definition at line 33 of file ScatterSVM.cpp.
|
virtual |
default destructor
Definition at line 39 of file ScatterSVM.cpp.
|
virtual |
classify one example
num | number of example to classify |
Reimplemented from CMultiClassSVM.
Definition at line 406 of file ScatterSVM.cpp.
|
virtual |
classify one vs rest
Reimplemented from CMultiClassSVM.
Definition at line 339 of file ScatterSVM.cpp.
|
virtual |
get classifier type
Reimplemented from CMachine.
Definition at line 74 of file ScatterSVM.h.
|
virtual |
|
protectedvirtual |
train SVM classifier
data | training data (parameter can be avoided if distance or kernel-based classifiers are used and distance/kernels are initialized with train data) |
Reimplemented from CMachine.
Definition at line 45 of file ScatterSVM.cpp.
|
protected |
number of classes
Definition at line 131 of file ScatterSVM.h.
|
protected |
SVM model
Definition at line 119 of file ScatterSVM.h.
|
protected |
norm of w_c
Definition at line 122 of file ScatterSVM.h.
|
protected |
norm of w_cw
Definition at line 125 of file ScatterSVM.h.
|
protected |
SVM param
Definition at line 116 of file ScatterSVM.h.
|
protected |
SVM problem
Definition at line 114 of file ScatterSVM.h.
|
protected |
ScatterSVM rho
Definition at line 128 of file ScatterSVM.h.
|
protected |
type of scatter SVM
Definition at line 111 of file ScatterSVM.h.