class DomainAdaptationSVM
Definition at line 25 of file DomainAdaptationSVM.h.
Public Member Functions | |
CDomainAdaptationSVM () | |
CDomainAdaptationSVM (float64_t C, CKernel *k, CLabels *lab, CSVM *presvm, float64_t B) | |
virtual | ~CDomainAdaptationSVM () |
void | init (CSVM *presvm, float64_t B) |
virtual EClassifierType | get_classifier_type () |
virtual CLabels * | apply (CFeatures *data) |
virtual CSVM * | get_presvm () |
virtual float64_t | get_B () |
virtual float64_t | get_train_factor () |
virtual void | set_train_factor (float64_t factor) |
virtual const char * | get_name () const |
Protected Member Functions | |
virtual bool | is_presvm_sane () |
virtual bool | train_machine (CFeatures *data=NULL) |
Protected Attributes | |
CSVM * | presvm |
float64_t | B |
float64_t | train_factor |
default constructor
Definition at line 22 of file DomainAdaptationSVM.cpp.
constructor
C | cost constant C | |
k | kernel | |
lab | labels | |
presvm | trained SVM to regularize against | |
B | trade-off constant B |
Definition at line 26 of file DomainAdaptationSVM.cpp.
~CDomainAdaptationSVM | ( | ) | [virtual] |
destructor
Definition at line 32 of file DomainAdaptationSVM.cpp.
classify objects
data | (test)data to be classified |
Reimplemented from CKernelMachine.
Definition at line 148 of file DomainAdaptationSVM.cpp.
float64_t get_B | ( | ) | [virtual] |
getter for regularization parameter B
Definition at line 130 of file DomainAdaptationSVM.cpp.
virtual EClassifierType get_classifier_type | ( | ) | [virtual] |
get classifier type
Reimplemented from CSVMLight.
Definition at line 56 of file DomainAdaptationSVM.h.
virtual const char* get_name | ( | ) | const [virtual] |
Reimplemented from CSVMLight.
Definition at line 89 of file DomainAdaptationSVM.h.
CSVM * get_presvm | ( | ) | [virtual] |
returns SVM that is used as prior information
Definition at line 123 of file DomainAdaptationSVM.cpp.
float64_t get_train_factor | ( | ) | [virtual] |
getter for train_factor
Definition at line 136 of file DomainAdaptationSVM.cpp.
init SVM
presvm | trained SVM to regularize against | |
B | trade-off constant B |
Definition at line 39 of file DomainAdaptationSVM.cpp.
bool is_presvm_sane | ( | ) | [protected, virtual] |
check sanity of presvm
Definition at line 55 of file DomainAdaptationSVM.cpp.
void set_train_factor | ( | float64_t | factor | ) | [virtual] |
setter for train_factor
Definition at line 142 of file DomainAdaptationSVM.cpp.
bool train_machine | ( | CFeatures * | data = NULL |
) | [protected, virtual] |
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 CSVMLight.
Definition at line 81 of file DomainAdaptationSVM.cpp.
regularization parameter B
Definition at line 118 of file DomainAdaptationSVM.h.
SVM to regularize against
Definition at line 115 of file DomainAdaptationSVM.h.
float64_t train_factor [protected] |
flag to switch off regularization in training
Definition at line 121 of file DomainAdaptationSVM.h.