CSVMSGD Class Reference


Detailed Description

class SVMSGD

Definition at line 31 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 ()
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::CSVMSGD ( float64_t  C  ) 

constructor

Parameters:
C constant C

Definition at line 102 of file SVMSGD.cpp.

CSVMSGD::CSVMSGD ( float64_t  C,
CDotFeatures traindat,
CLabels trainlab 
)

constructor

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

Definition at line 109 of file SVMSGD.cpp.

CSVMSGD::~CSVMSGD (  )  [virtual]

Definition at line 119 of file SVMSGD.cpp.


Member Function Documentation

void CSVMSGD::calibrate (  )  [protected]

calibrate

Definition at line 203 of file SVMSGD.cpp.

bool CSVMSGD::get_bias_enabled (  ) 

check if bias is enabled

Returns:
if bias is enabled

Definition at line 105 of file SVMSGD.h.

float64_t CSVMSGD::get_C1 (  ) 

get C1

Returns:
C1

Definition at line 75 of file SVMSGD.h.

float64_t CSVMSGD::get_C2 (  ) 

get C2

Returns:
C2

Definition at line 81 of file SVMSGD.h.

virtual EClassifierType CSVMSGD::get_classifier_type (  )  [virtual]

get classifier type

Returns:
classifier type SVMOCAS

Reimplemented from CClassifier.

Definition at line 56 of file SVMSGD.h.

int32_t CSVMSGD::get_epochs (  ) 

get epochs

Returns:
the number of training epochs

Definition at line 93 of file SVMSGD.h.

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

Implements CSGObject.

Definition at line 120 of file SVMSGD.h.

bool CSVMSGD::get_regularized_bias_enabled (  ) 

check if regularized bias is enabled

Returns:
if regularized bias is enabled

Definition at line 117 of file SVMSGD.h.

void CSVMSGD::set_bias_enabled ( bool  enable_bias  ) 

set if bias shall be enabled

Parameters:
enable_bias if bias shall be enabled

Definition at line 99 of file SVMSGD.h.

void CSVMSGD::set_C ( float64_t  c1,
float64_t  c2 
)

set C

Parameters:
c1 new C1
c2 new C2

Definition at line 69 of file SVMSGD.h.

void CSVMSGD::set_epochs ( int32_t  e  ) 

set epochs

Parameters:
e new number of training epochs

Definition at line 87 of file SVMSGD.h.

void CSVMSGD::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 111 of file SVMSGD.h.

bool CSVMSGD::train (  )  [virtual]

train SVM

Returns:
true if training was successful

Reimplemented from CClassifier.

Definition at line 125 of file SVMSGD.cpp.


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

SHOGUN Machine Learning Toolbox - Documentation