CSVMLin Class Reference

Inheritance diagram for CSVMLin:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 CSVMLin ()
 CSVMLin (float64_t C, CSparseFeatures< float64_t > *traindat, CLabels *trainlab)
virtual ~CSVMLin ()
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_bias_enabled (bool enable_bias)
bool get_bias_enabled ()
void set_epsilon (float64_t eps)
float64_t get_epsilon ()

Protected Attributes

float64_t C1
float64_t C2
float64_t epsilon
bool use_bias


Detailed Description

class SVMLin

Definition at line 20 of file SVMLin.h.


Constructor & Destructor Documentation

CSVMLin::CSVMLin (  ) 

default constructor

Definition at line 19 of file SVMLin.cpp.

CSVMLin::CSVMLin ( float64_t  C,
CSparseFeatures< float64_t > *  traindat,
CLabels trainlab 
)

constructor

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

Definition at line 24 of file SVMLin.cpp.

CSVMLin::~CSVMLin (  )  [virtual]

Definition at line 33 of file SVMLin.cpp.


Member Function Documentation

bool CSVMLin::get_bias_enabled (  ) 

get if bias is enabled

Returns:
if bias is enabled

Definition at line 75 of file SVMLin.h.

float64_t CSVMLin::get_C1 (  ) 

get C1

Returns:
C1

Definition at line 57 of file SVMLin.h.

float64_t CSVMLin::get_C2 (  ) 

get C2

Returns:
C2

Definition at line 63 of file SVMLin.h.

virtual EClassifierType CSVMLin::get_classifier_type (  )  [virtual]

get classifier type

Returns:
classifier type SVMLIN

Reimplemented from CClassifier.

Definition at line 41 of file SVMLin.h.

float64_t CSVMLin::get_epsilon (  ) 

get epsilon

Returns:
epsilon

Definition at line 87 of file SVMLin.h.

void CSVMLin::set_bias_enabled ( bool  enable_bias  ) 

set if bias shall be enabled

Parameters:
enable_bias if bias shall be enabled

Definition at line 69 of file SVMLin.h.

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

set C

Parameters:
c1 new C1
c2 new C2

Definition at line 51 of file SVMLin.h.

void CSVMLin::set_epsilon ( float64_t  eps  ) 

set epsilon

Parameters:
eps new epsilon

Definition at line 81 of file SVMLin.h.

bool CSVMLin::train (  )  [virtual]

train classifier

Reimplemented from CClassifier.

Definition at line 37 of file SVMLin.cpp.


Member Data Documentation

float64_t CSVMLin::C1 [protected]

C1

Definition at line 91 of file SVMLin.h.

float64_t CSVMLin::C2 [protected]

C2

Definition at line 93 of file SVMLin.h.

epsilon

Definition at line 95 of file SVMLin.h.

bool CSVMLin::use_bias [protected]

if bias is used

Definition at line 98 of file SVMLin.h.


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

SHOGUN Machine Learning Toolbox - Documentation