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 (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 ( float64_t  C )

constructor

Parameters:
Cconstant C

Definition at line 105 of file SVMSGD.cpp.

CSVMSGD ( float64_t  C,
CDotFeatures traindat,
CLabels trainlab 
)

constructor

Parameters:
Cconstant C
traindattraining features
trainlablabels for training features

Definition at line 112 of file SVMSGD.cpp.

~CSVMSGD (  ) [virtual]

Definition at line 122 of file SVMSGD.cpp.


Member Function Documentation

void calibrate (  ) [protected]

calibrate

Definition at line 216 of file SVMSGD.cpp.

bool get_bias_enabled (  )

check if bias is enabled

Returns:
if bias is enabled

Definition at line 112 of file SVMSGD.h.

float64_t get_C1 (  )

get C1

Returns:
C1

Definition at line 82 of file SVMSGD.h.

float64_t get_C2 (  )

get C2

Returns:
C2

Definition at line 88 of file SVMSGD.h.

virtual EClassifierType get_classifier_type (  ) [virtual]

get classifier type

Returns:
classifier type SVMOCAS

Reimplemented from CClassifier.

Definition at line 58 of file SVMSGD.h.

int32_t get_epochs (  )

get epochs

Returns:
the number of training epochs

Definition at line 100 of file SVMSGD.h.

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

Implements CSGObject.

Definition at line 127 of file SVMSGD.h.

bool get_regularized_bias_enabled (  )

check if regularized bias is enabled

Returns:
if regularized bias is enabled

Definition at line 124 of file SVMSGD.h.

void set_bias_enabled ( bool  enable_bias )

set if bias shall be enabled

Parameters:
enable_biasif bias shall be enabled

Definition at line 106 of file SVMSGD.h.

void set_C ( float64_t  c_neg,
float64_t  c_pos 
)

set C

Parameters:
c_negnew C constant for negatively labeled examples
c_posnew C constant for positively labeled examples

Definition at line 76 of file SVMSGD.h.

void set_epochs ( int32_t  e )

set epochs

Parameters:
enew number of training epochs

Definition at line 94 of file SVMSGD.h.

void set_regularized_bias_enabled ( bool  enable_bias )

set if regularized bias shall be enabled

Parameters:
enable_biasif regularized bias shall be enabled

Definition at line 118 of file SVMSGD.h.

bool train ( CFeatures data = NULL ) [virtual]

train classifier

Parameters:
datatraining 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 128 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