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 c1, float64_t c2)
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:
C constant C

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

float64_t get_C1 (  ) 

get C1

Returns:
C1

Definition at line 81 of file SVMSGD.h.

float64_t get_C2 (  ) 

get C2

Returns:
C2

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

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

Implements CSGObject.

Definition at line 126 of file SVMSGD.h.

bool get_regularized_bias_enabled (  ) 

check if regularized bias is enabled

Returns:
if regularized bias is enabled

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

void set_C ( float64_t  c1,
float64_t  c2 
)

set C

Parameters:
c1 new C1
c2 new C2

Definition at line 75 of file SVMSGD.h.

void set_epochs ( int32_t  e  ) 

set epochs

Parameters:
e new number of training epochs

Definition at line 93 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 117 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 128 of file SVMSGD.cpp.


The documentation for this class was generated from the following files:

SHOGUN Machine Learning Toolbox - Documentation