CLibLinear Class Reference

Inheritance diagram for CLibLinear:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 CLibLinear (LIBLINEAR_LOSS loss)
 CLibLinear (float64_t C, CSparseFeatures< float64_t > *traindat, CLabels *trainlab)
virtual ~CLibLinear ()
virtual bool train ()
virtual EClassifierType get_classifier_type ()
void set_C (float64_t c1, float64_t c2)
float64_t get_C1 ()
float64_t get_C2 ()
void set_epsilon (float64_t eps)
float64_t get_epsilon ()
void set_bias_enabled (bool enable_bias)
bool get_bias_enabled ()

Protected Attributes

float64_t C1
float64_t C2
bool use_bias
float64_t epsilon
LIBLINEAR_LOSS loss


Detailed Description

class to implement LibLinear

Definition at line 27 of file LibLinear.h.


Constructor & Destructor Documentation

CLibLinear::CLibLinear ( LIBLINEAR_LOSS  loss  ) 

constructor

Parameters:
loss loss

Definition at line 19 of file LibLinear.cpp.

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

constructor

Parameters:
C constant C
traindat training features
trainlab training labels

Definition at line 28 of file LibLinear.cpp.

CLibLinear::~CLibLinear (  )  [virtual]

Definition at line 38 of file LibLinear.cpp.


Member Function Documentation

bool CLibLinear::get_bias_enabled (  ) 

check if bias is enabled

Returns:
if bias is enabled

Definition at line 98 of file LibLinear.h.

float64_t CLibLinear::get_C1 (  ) 

get C1

Returns:
C1

Definition at line 68 of file LibLinear.h.

float64_t CLibLinear::get_C2 (  ) 

get C2

Returns:
C2

Definition at line 74 of file LibLinear.h.

virtual EClassifierType CLibLinear::get_classifier_type (  )  [virtual]

get classifier type

Returns:
the classifier type

Reimplemented from CClassifier.

Definition at line 55 of file LibLinear.h.

float64_t CLibLinear::get_epsilon (  ) 

get epsilon

Returns:
epsilon

Definition at line 86 of file LibLinear.h.

void CLibLinear::set_bias_enabled ( bool  enable_bias  ) 

set if bias shall be enabled

Parameters:
enable_bias if bias shall be enabled

Definition at line 92 of file LibLinear.h.

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

set C

Parameters:
c1 C1
c2 C2

Definition at line 62 of file LibLinear.h.

void CLibLinear::set_epsilon ( float64_t  eps  ) 

set epsilon

Parameters:
eps new epsilon

Definition at line 80 of file LibLinear.h.

bool CLibLinear::train (  )  [virtual]

train SVM

Reimplemented from CClassifier.

Definition at line 42 of file LibLinear.cpp.


Member Data Documentation

C1

Definition at line 102 of file LibLinear.h.

C2

Definition at line 104 of file LibLinear.h.

epsilon

Definition at line 108 of file LibLinear.h.

loss

Definition at line 111 of file LibLinear.h.

bool CLibLinear::use_bias [protected]

if bias shall be used

Definition at line 106 of file LibLinear.h.


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

SHOGUN Machine Learning Toolbox - Documentation