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
[legend]

List of all members.

Public Member Functions

 CMPDSVM ()
 CMPDSVM (float64_t C, CKernel *k, CLabels *lab)
virtual ~CMPDSVM ()
virtual bool train (CFeatures *data=NULL)
virtual EClassifierType get_classifier_type ()
virtual const char * get_name () const

Protected Member Functions

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

CMPDSVM (  ) 

default constructor

Definition at line 18 of file MPDSVM.cpp.

CMPDSVM ( float64_t  C,
CKernel k,
CLabels lab 
)

constructor

Parameters:
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

Parameters:
i index of H
j index of H
Returns:
computed H at index i,j

Definition at line 61 of file MPDSVM.h.

virtual EClassifierType get_classifier_type (  )  [virtual]

get classifier type

Returns:
classifier type MPD

Reimplemented from CClassifier.

Definition at line 49 of file MPDSVM.h.

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

Reimplemented from CSVM.

Definition at line 52 of file MPDSVM.h.

KERNELCACHE_ELEM* lock_kernel_row ( int32_t  i  )  [protected]

lock kernel row

Parameters:
i row to lock
Returns:
locked row

Definition at line 71 of file MPDSVM.h.

bool train ( CFeatures data = NULL  )  [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 CClassifier.

Definition at line 32 of file MPDSVM.cpp.

void unlock_kernel_row ( int32_t  i  )  [protected]

unlock kernel row

Parameters:
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