Public Member Functions | Protected Member Functions | Protected Attributes

CMPDSVM Class Reference

Detailed Description

class MPDSVM

Definition at line 20 of file MPDSVM.h.

Inheritance diagram for CMPDSVM:
Inheritance graph

List of all members.

Public Member Functions

 CMPDSVM (float64_t C, CKernel *k, CLabels *lab)
virtual ~CMPDSVM ()
virtual EClassifierType get_classifier_type ()
virtual const char * get_name () const

Protected Member Functions

virtual bool train_machine (CFeatures *data=NULL)
float64_t compute_H (int32_t i, int32_t j)
KERNELCACHE_ELEMlock_kernel_row (int32_t i)
void unlock_kernel_row (int32_t i)

Protected Attributes

CCache< KERNELCACHE_ELEM > * kernel_cache

Constructor & Destructor Documentation


default constructor

Definition at line 18 of file MPDSVM.cpp.

CMPDSVM ( float64_t  C,
CKernel k,
CLabels lab 


C constant C
k kernel
lab labels

Definition at line 23 of file MPDSVM.cpp.

~CMPDSVM (  )  [virtual]

Definition at line 28 of file MPDSVM.cpp.

Member Function Documentation

float64_t compute_H ( int32_t  i,
int32_t  j 
) [protected]

compute H

i index of H
j index of H
computed H at index i,j

Definition at line 61 of file MPDSVM.h.

virtual EClassifierType get_classifier_type (  )  [virtual]

get classifier type

classifier type MPD

Reimplemented from CMachine.

Definition at line 39 of file MPDSVM.h.

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

Reimplemented from CSVM.

Definition at line 42 of file MPDSVM.h.

KERNELCACHE_ELEM* lock_kernel_row ( int32_t  i  )  [protected]

lock kernel row

i row to lock
locked row

Definition at line 71 of file MPDSVM.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 32 of file MPDSVM.cpp.

void unlock_kernel_row ( int32_t  i  )  [protected]

unlock kernel row

i row to unlock

Definition at line 97 of file MPDSVM.h.

Member Data Documentation

kernel cache

Definition at line 103 of file MPDSVM.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