Public Member Functions | Protected Member Functions

CSVMSGD Class Reference


Detailed Description

class SVMSGD

Definition at line 33 of file SVMSGD.h.

Inheritance diagram for CSVMSGD:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 CSVMSGD ()
 CSVMSGD (float64_t C)
 CSVMSGD (float64_t C, CDotFeatures *traindat, CLabels *trainlab)
virtual ~CSVMSGD ()
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 set_bias_enabled (bool enable_bias)
bool get_bias_enabled ()
void set_regularized_bias_enabled (bool enable_bias)
bool get_regularized_bias_enabled ()
virtual const char * get_name () const

Protected Member Functions

void calibrate ()

Constructor & Destructor Documentation

CSVMSGD (  ) 

default constructor

Definition at line 105 of file SVMSGD.cpp.

CSVMSGD ( float64_t  C  ) 

constructor

Parameters:
C constant C

Definition at line 111 of file SVMSGD.cpp.

CSVMSGD ( float64_t  C,
CDotFeatures traindat,
CLabels trainlab 
)

constructor

Parameters:
C constant C
traindat training features
trainlab labels for training features

Definition at line 120 of file SVMSGD.cpp.

~CSVMSGD (  )  [virtual]

Definition at line 131 of file SVMSGD.cpp.


Member Function Documentation

void calibrate (  )  [protected]

calibrate

Definition at line 223 of file SVMSGD.cpp.

bool get_bias_enabled (  ) 

check if bias is enabled

Returns:
if bias is enabled

Definition at line 115 of file SVMSGD.h.

float64_t get_C1 (  ) 

get C1

Returns:
C1

Definition at line 85 of file SVMSGD.h.

float64_t get_C2 (  ) 

get C2

Returns:
C2

Definition at line 91 of file SVMSGD.h.

virtual EClassifierType get_classifier_type (  )  [virtual]

get classifier type

Returns:
classifier type SVMOCAS

Reimplemented from CClassifier.

Definition at line 61 of file SVMSGD.h.

int32_t get_epochs (  ) 

get epochs

Returns:
the number of training epochs

Definition at line 103 of file SVMSGD.h.

virtual const char* get_name ( void   )  const [virtual]
Returns:
object name

Reimplemented from CLinearClassifier.

Definition at line 130 of file SVMSGD.h.

bool get_regularized_bias_enabled (  ) 

check if regularized bias is enabled

Returns:
if regularized bias is enabled

Definition at line 127 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 109 of file SVMSGD.h.

void set_C ( float64_t  c_neg,
float64_t  c_pos 
)

set C

Parameters:
c_neg new C constant for negatively labeled examples
c_pos new C constant for positively labeled examples

Definition at line 79 of file SVMSGD.h.

void set_epochs ( int32_t  e  ) 

set epochs

Parameters:
e new number of training epochs

Definition at line 97 of file SVMSGD.h.

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 121 of file SVMSGD.h.

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 CClassifier.

Definition at line 135 of file SVMSGD.cpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

SHOGUN Machine Learning Toolbox - Documentation