|
SHOGUN
v1.1.0
|
class DomainAdaptationSVMLinear
Definition at line 25 of file DomainAdaptationSVMLinear.h.

Protected Member Functions | |
| virtual bool | is_presvm_sane () |
| virtual bool | train_machine (CDotFeatures *data=NULL) |
Protected Member Functions inherited from CLibLinear | |
| virtual bool | train_machine (CFeatures *data=NULL) |
Protected Member Functions inherited from CLinearMachine | |
| virtual void | store_model_features () |
Protected Attributes | |
| CLinearMachine * | presvm |
| float64_t | B |
| float64_t | train_factor |
Protected Attributes inherited from CLibLinear | |
| float64_t | C1 |
| float64_t | C2 |
| bool | use_bias |
| float64_t | epsilon |
| int32_t | max_iterations |
| SGVector< float64_t > | m_linear_term |
| LIBLINEAR_SOLVER_TYPE | liblinear_solver_type |
Protected Attributes inherited from CLinearMachine | |
| int32_t | w_dim |
| float64_t * | w |
| float64_t | bias |
| CDotFeatures * | features |
Protected Attributes inherited from CMachine | |
| float64_t | max_train_time |
| CLabels * | labels |
| ESolverType | solver_type |
| bool | m_store_model_features |
Additional Inherited Members | |
Public Attributes inherited from CSGObject | |
| SGIO * | io |
| Parallel * | parallel |
| Version * | version |
| Parameter * | m_parameters |
| Parameter * | m_model_selection_parameters |
default constructor
Definition at line 24 of file DomainAdaptationSVMLinear.cpp.
| CDomainAdaptationSVMLinear | ( | float64_t | C, |
| CDotFeatures * | f, | ||
| CLabels * | lab, | ||
| CLinearMachine * | presvm, | ||
| float64_t | B | ||
| ) |
constructor
| C | cost constant C |
| f | features |
| lab | labels |
| presvm | trained SVM to regularize against |
| B | trade-off constant B |
Definition at line 30 of file DomainAdaptationSVMLinear.cpp.
|
virtual |
destructor
Definition at line 37 of file DomainAdaptationSVMLinear.cpp.
|
virtual |
classify objects
| data | (test)data to be classified |
Definition at line 200 of file DomainAdaptationSVMLinear.cpp.
|
virtual |
getter for regularization parameter B
Definition at line 182 of file DomainAdaptationSVMLinear.cpp.
|
virtual |
get classifier type
Reimplemented from CLibLinear.
Definition at line 60 of file DomainAdaptationSVMLinear.h.
|
virtual |
get linear term
Reimplemented from CLibLinear.
Definition at line 114 of file DomainAdaptationSVMLinear.h.
|
virtual |
returns SVM that is used as prior information
Definition at line 176 of file DomainAdaptationSVMLinear.cpp.
|
virtual |
getter for train_factor
Definition at line 188 of file DomainAdaptationSVMLinear.cpp.
| void init | ( | CLinearMachine * | presvm, |
| float64_t | B | ||
| ) |
init SVM
| presvm | trained SVM to regularize against |
| B | trade-off constant B |
Definition at line 45 of file DomainAdaptationSVMLinear.cpp.
|
protectedvirtual |
check sanity of presvm
Definition at line 74 of file DomainAdaptationSVMLinear.cpp.
|
virtual |
setter for train_factor
Definition at line 194 of file DomainAdaptationSVMLinear.cpp.
|
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) |
Definition at line 97 of file DomainAdaptationSVMLinear.cpp.
|
protected |
regularization parameter B
Definition at line 141 of file DomainAdaptationSVMLinear.h.
|
protected |
SVM to regularize against
Definition at line 137 of file DomainAdaptationSVMLinear.h.
|
protected |
flag to switch off regularization in training
Definition at line 145 of file DomainAdaptationSVMLinear.h.