|
SHOGUN
v1.1.0
|

Public Member Functions | |
| CSVMSGD () | |
| CSVMSGD (float64_t C) | |
| CSVMSGD (float64_t C, CDotFeatures *traindat, CLabels *trainlab) | |
| virtual | ~CSVMSGD () |
| virtual EClassifierType | get_classifier_type () |
| void | set_C (float64_t c_neg, float64_t c_pos) |
| float64_t | get_C1 () |
| float64_t | get_C2 () |
| void | set_epochs (int32_t e) |
| int32_t | get_epochs () |
| void | set_bias_enabled (bool enable_bias) |
| bool | get_bias_enabled () |
| void | set_regularized_bias_enabled (bool enable_bias) |
| bool | get_regularized_bias_enabled () |
| void | set_loss_function (CLossFunction *loss_func) |
| CLossFunction * | get_loss_function () |
| virtual const char * | get_name () const |
Protected Member Functions | |
| void | calibrate () |
| virtual bool | train_machine (CFeatures *data=NULL) |
| CSVMSGD | ( | ) |
default constructor
Definition at line 30 of file SVMSGD.cpp.
| CSVMSGD | ( | float64_t | C, |
| CDotFeatures * | traindat, | ||
| CLabels * | trainlab | ||
| ) |
constructor
| C | constant C |
| traindat | training features |
| trainlab | labels for training features |
Definition at line 45 of file SVMSGD.cpp.
| ~CSVMSGD | ( | ) | [virtual] |
Definition at line 56 of file SVMSGD.cpp.
| void calibrate | ( | ) | [protected] |
calibrate
Definition at line 160 of file SVMSGD.cpp.
| bool get_bias_enabled | ( | ) |
| virtual EClassifierType get_classifier_type | ( | ) | [virtual] |
| int32_t get_epochs | ( | ) |
| virtual const char* get_name | ( | ) | const [virtual] |
| bool get_regularized_bias_enabled | ( | ) |
| void set_bias_enabled | ( | bool | enable_bias | ) |
| void set_epochs | ( | int32_t | e | ) |
| void set_loss_function | ( | CLossFunction * | loss_func | ) |
Set the loss function to use
| loss_func | object derived from CLossFunction |
Definition at line 61 of file SVMSGD.cpp.
| void set_regularized_bias_enabled | ( | bool | enable_bias | ) |
| bool train_machine | ( | CFeatures * | data = NULL | ) | [protected, virtual] |
train 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 69 of file SVMSGD.cpp.