Public Member Functions | Protected Member Functions | Protected Attributes

CSVMLin Class Reference

Detailed Description

class SVMLin

Definition at line 22 of file SVMLin.h.

Inheritance diagram for CSVMLin:
Inheritance graph

List of all members.

Public Member Functions

 CSVMLin ()
 CSVMLin (float64_t C, CDotFeatures *traindat, CLabels *trainlab)
virtual ~CSVMLin ()
virtual EClassifierType get_classifier_type ()
void set_C (float64_t c_neg, float64_t c_pos)
float64_t get_C1 ()
float64_t get_C2 ()
void set_bias_enabled (bool enable_bias)
bool get_bias_enabled ()
void set_epsilon (float64_t eps)
float64_t get_epsilon ()
virtual const char * get_name () const

Protected Member Functions

virtual bool train_machine (CFeatures *data=NULL)

Protected Attributes

float64_t C1
float64_t C2
float64_t epsilon
bool use_bias

Constructor & Destructor Documentation

CSVMLin (  ) 

default constructor

Definition at line 21 of file SVMLin.cpp.

CSVMLin ( float64_t  C,
CDotFeatures traindat,
CLabels trainlab 


C constant C
traindat training features
trainlab labels for features

Definition at line 26 of file SVMLin.cpp.

~CSVMLin (  )  [virtual]

Definition at line 35 of file SVMLin.cpp.

Member Function Documentation

bool get_bias_enabled (  ) 

get if bias is enabled

if bias is enabled

Definition at line 75 of file SVMLin.h.

float64_t get_C1 (  ) 

get C1


Definition at line 57 of file SVMLin.h.

float64_t get_C2 (  ) 

get C2


Definition at line 63 of file SVMLin.h.

virtual EClassifierType get_classifier_type (  )  [virtual]

get classifier type

classifier type SVMLIN

Reimplemented from CMachine.

Definition at line 43 of file SVMLin.h.

float64_t get_epsilon (  ) 

get epsilon


Definition at line 87 of file SVMLin.h.

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

Reimplemented from CLinearMachine.

Definition at line 90 of file SVMLin.h.

void set_bias_enabled ( bool  enable_bias  ) 

set if bias shall be enabled

enable_bias if bias shall be enabled

Definition at line 69 of file SVMLin.h.

void set_C ( float64_t  c_neg,
float64_t  c_pos 

set C

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

Definition at line 51 of file SVMLin.h.

void set_epsilon ( float64_t  eps  ) 

set epsilon

eps new epsilon

Definition at line 81 of file SVMLin.h.

bool train_machine ( CFeatures data = NULL  )  [protected, virtual]

train SVM classifier

data training data (parameter can be avoided if distance or kernel-based classifiers are used and distance/kernels are initialized with train data)
whether training was successful

Reimplemented from CMachine.

Definition at line 39 of file SVMLin.cpp.

Member Data Documentation

float64_t C1 [protected]


Definition at line 105 of file SVMLin.h.

float64_t C2 [protected]


Definition at line 107 of file SVMLin.h.

float64_t epsilon [protected]


Definition at line 109 of file SVMLin.h.

bool use_bias [protected]

if bias is used

Definition at line 112 of file SVMLin.h.

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