Detailed Description
class SGDQN
Definition at line 34 of file SGDQN.h.
List of all members.
Public Member Functions |
| CSGDQN () |
| CSGDQN (float64_t C) |
| CSGDQN (float64_t C, CDotFeatures *traindat, CLabels *trainlab) |
virtual | ~CSGDQN () |
virtual EClassifierType | get_classifier_type () |
virtual bool | train (CFeatures *data=NULL) |
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 | compute_ratio (float64_t *W, float64_t *W_1, float64_t *B, float64_t *dst, int32_t dim, float64_t regularizer_lambda, float64_t loss) |
void | combine_and_clip (float64_t *Bc, float64_t *B, int32_t dim, float64_t c1, float64_t c2, float64_t v1, float64_t v2) |
void | set_loss_function (CLossFunction *loss_func) |
CLossFunction * | get_loss_function () |
virtual const char * | get_name () const |
Protected Member Functions |
void | calibrate () |
Constructor & Destructor Documentation
default constructor
Definition at line 30 of file SGDQN.cpp.
constructor
- Parameters:
-
Definition at line 36 of file SGDQN.cpp.
constructor
- Parameters:
-
| C | constant C |
| traindat | training features |
| trainlab | labels for training features |
Definition at line 45 of file SGDQN.cpp.
Member Function Documentation
void calibrate |
( |
|
) |
[protected] |
combine and clip scaling matrix B
Definition at line 81 of file SGDQN.cpp.
computing diagonal scaling matrix B as ratio
Definition at line 69 of file SGDQN.cpp.
get C1
- Returns:
- C1
Definition at line 86 of file SGDQN.h.
get C2
- Returns:
- C2
Definition at line 92 of file SGDQN.h.
get classifier type
- Returns:
- classifier type SVMSGDQN
Reimplemented from CMachine.
Definition at line 62 of file SGDQN.h.
get epochs
- Returns:
- the number of training epochs
Definition at line 104 of file SGDQN.h.
Return the loss function
- Returns:
- loss function as CLossFunction*
Definition at line 122 of file SGDQN.h.
virtual const char* get_name |
( |
void |
|
) |
const [virtual] |
set C
- Parameters:
-
| c_neg | new C constant for negatively labeled examples |
| c_pos | new C constant for positively labeled examples |
Definition at line 80 of file SGDQN.h.
void set_epochs |
( |
int32_t |
e |
) |
|
set epochs
- Parameters:
-
| e | new number of training epochs |
Definition at line 98 of file SGDQN.h.
Set the loss function to use
- Parameters:
-
Definition at line 61 of file SGDQN.cpp.
bool train |
( |
CFeatures * |
data = NULL |
) |
[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 93 of file SGDQN.cpp.
The documentation for this class was generated from the following files: