Public Member Functions | Protected Member Functions | Protected Attributes

CLibSVM Class Reference


Detailed Description

LibSVM.

Definition at line 28 of file LibSVM.h.

Inheritance diagram for CLibSVM:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 CLibSVM (LIBSVM_SOLVER_TYPE st=LIBSVM_C_SVC)
 CLibSVM (float64_t C, CKernel *k, CLabels *lab)
virtual ~CLibSVM ()
virtual EClassifierType get_classifier_type ()
virtual const char * get_name () const

Protected Member Functions

virtual bool train_machine (CFeatures *data=NULL)

Protected Attributes

svm_problem problem
svm_parameter param
struct svm_model * model
LIBSVM_SOLVER_TYPE solver_type

Constructor & Destructor Documentation

CLibSVM ( LIBSVM_SOLVER_TYPE  st = LIBSVM_C_SVC  ) 

constructor

Definition at line 16 of file LibSVM.cpp.

CLibSVM ( float64_t  C,
CKernel k,
CLabels lab 
)

constructor

Parameters:
C constant C
k kernel
lab labels

Definition at line 21 of file LibSVM.cpp.

~CLibSVM (  )  [virtual]

Definition at line 27 of file LibSVM.cpp.


Member Function Documentation

virtual EClassifierType get_classifier_type (  )  [virtual]

get classifier type

Returns:
classifier type LIBSVM

Reimplemented from CMachine.

Definition at line 48 of file LibSVM.h.

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

Reimplemented from CSVM.

Definition at line 51 of file LibSVM.h.

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

train SVM 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 CMachine.

Definition at line 32 of file LibSVM.cpp.


Member Data Documentation

struct svm_model* model [protected]

SVM model

Definition at line 70 of file LibSVM.h.

svm_parameter param [protected]

SVM param

Definition at line 68 of file LibSVM.h.

svm_problem problem [protected]

SVM problem

Definition at line 66 of file LibSVM.h.

LIBSVM_SOLVER_TYPE solver_type [protected]

solver type

Reimplemented from CMachine.

Definition at line 73 of file LibSVM.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