|
SHOGUN
v1.1.0
|
Class LibSVR, performs support vector regression using LibSVM.
The SVR solution can be expressed as
where
and
are determined in training, i.e. using a pre-specified kernel, a given tube-epsilon for the epsilon insensitive loss, the follwoing quadratic problem is minimized (using sequential minimal decomposition (SMO))
Note that the SV regression problem is reduced to the standard SV classification problem by introducing artificial labels
which leads to the epsilon insensitive loss constraints *
with
and

Protected Member Functions | |
| virtual bool | train_machine (CFeatures *data=NULL) |
Protected Member Functions inherited from CSVM | |
| virtual float64_t * | get_linear_term_array () |
Protected Member Functions inherited from CKernelMachine | |
| virtual void | store_model_features () |
Protected Attributes | |
| svm_problem | problem |
| svm_parameter | param |
| struct svm_model * | model |
Protected Attributes inherited from CSVM | |
| 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 |
Protected Attributes inherited from CKernelMachine | |
| 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 |
Protected Attributes inherited from CMachine | |
| float64_t | max_train_time |
| CLabels * | labels |
| ESolverType | solver_type |
| bool | m_store_model_features |
Additional Inherited Members | |
Static Public Member Functions inherited from CKernelMachine | |
| static void * | apply_helper (void *p) |
Public Attributes inherited from CSGObject | |
| SGIO * | io |
| Parallel * | parallel |
| Version * | version |
| Parameter * | m_parameters |
| Parameter * | m_model_selection_parameters |
| CLibSVR | ( | ) |
default constructor
Definition at line 16 of file LibSVR.cpp.
constructor
| C | constant C |
| epsilon | tube epsilon |
| k | kernel |
| lab | labels |
Definition at line 22 of file LibSVR.cpp.
|
virtual |
Definition at line 33 of file LibSVR.cpp.
|
virtual |
get classifier type
Reimplemented from CMachine.
Definition at line 38 of file LibSVR.cpp.
|
virtual |
|
protectedvirtual |
train regression
| data | training data (parameter can be avoided if distance or kernel-based regressor are used and distance/kernels are initialized with train data) |
Reimplemented from CMachine.
Definition at line 43 of file LibSVR.cpp.