Detailed Description
class SVMSGD
Definition at line 34 of file SVMSGD.h.
List of all members.
Constructor & Destructor Documentation
default constructor
Definition at line 30 of file SVMSGD.cpp.
constructor
- Parameters:
-
Definition at line 36 of file SVMSGD.cpp.
constructor
- Parameters:
-
| C | constant C |
| traindat | training features |
| trainlab | labels for training features |
Definition at line 45 of file SVMSGD.cpp.
Member Function Documentation
void calibrate |
( |
|
) |
[protected] |
bool get_bias_enabled |
( |
|
) |
|
check if bias is enabled
- Returns:
- if bias is enabled
Definition at line 106 of file SVMSGD.h.
get C1
- Returns:
- C1
Definition at line 76 of file SVMSGD.h.
get C2
- Returns:
- C2
Definition at line 82 of file SVMSGD.h.
get classifier type
- Returns:
- classifier type SVMOCAS
Reimplemented from CMachine.
Definition at line 62 of file SVMSGD.h.
get epochs
- Returns:
- the number of training epochs
Definition at line 94 of file SVMSGD.h.
Return the loss function
- Returns:
- loss function as CLossFunction*
Definition at line 130 of file SVMSGD.h.
virtual const char* get_name |
( |
void |
|
) |
const [virtual] |
bool get_regularized_bias_enabled |
( |
|
) |
|
check if regularized bias is enabled
- Returns:
- if regularized bias is enabled
Definition at line 118 of file SVMSGD.h.
void set_bias_enabled |
( |
bool |
enable_bias |
) |
|
set if bias shall be enabled
- Parameters:
-
| enable_bias | if bias shall be enabled |
Definition at line 100 of file SVMSGD.h.
set C
- Parameters:
-
| c_neg | new C constant for negatively labeled examples |
| c_pos | new C constant for positively labeled examples |
Definition at line 70 of file SVMSGD.h.
void set_epochs |
( |
int32_t |
e |
) |
|
set epochs
- Parameters:
-
| e | new number of training epochs |
Definition at line 88 of file SVMSGD.h.
Set the loss function to use
- Parameters:
-
Definition at line 61 of file SVMSGD.cpp.
void set_regularized_bias_enabled |
( |
bool |
enable_bias |
) |
|
set if regularized bias shall be enabled
- Parameters:
-
| enable_bias | if regularized bias shall be enabled |
Definition at line 112 of file SVMSGD.h.
bool train_machine |
( |
CFeatures * |
data = NULL |
) |
[protected, virtual] |
train classifier
- Parameters:
-
| data | training data (parameter can be avoided if distance or kernel-based classifiers are used and distance/kernels are initialized with train data) |
- Returns:
- whether training was successful
Reimplemented from CMachine.
Definition at line 69 of file SVMSGD.cpp.
The documentation for this class was generated from the following files: