CKernelMachine Class Reference

Inheritance diagram for CKernelMachine:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 CKernelMachine ()
virtual ~CKernelMachine ()
void set_kernel (CKernel *k)
CKernelget_kernel ()
void set_batch_computation_enabled (bool enable)
bool get_batch_computation_enabled ()
void set_linadd_enabled (bool enable)
bool get_linadd_enabled ()
virtual CLabelsclassify (CLabels *output=NULL)

Protected Attributes

CKernelkernel
bool use_batch_computation
bool use_linadd


Detailed Description

A generic KernelMachine interface

A kernel machine is defined as

\[ f({\bf x})=\sum_{i=0}^{N-1} \alpha_i k({\bf x}, {\bf x_i})+b \]

where $N$ is the number of training examples $\alpha_i$ are the weights assigned to each training example $k(x,x')$ is the kernel and $b$ the bias.

Using an a-priori choosen kernel, the $\alpha_i$ and bias are determined in a training procedure.

Definition at line 38 of file KernelMachine.h.


Constructor & Destructor Documentation

CKernelMachine::CKernelMachine (  ) 

default constructor

Definition at line 13 of file KernelMachine.cpp.

CKernelMachine::~CKernelMachine (  )  [virtual]

destructor

Definition at line 18 of file KernelMachine.cpp.


Member Function Documentation

CLabels * CKernelMachine::classify ( CLabels output = NULL  )  [virtual]

classify kernel machine

Parameters:
output where resuling labels are stored
Returns:
result labels

Reimplemented from CClassifier.

Reimplemented in CMultiClassSVM, CSVM, and CKRR.

Definition at line 23 of file KernelMachine.cpp.

bool CKernelMachine::get_batch_computation_enabled (  ) 

check if batch computation is enabled

Returns:
if batch computation is enabled

Definition at line 81 of file KernelMachine.h.

CKernel* CKernelMachine::get_kernel (  ) 

get kernel

Returns:
kernel

Definition at line 62 of file KernelMachine.h.

bool CKernelMachine::get_linadd_enabled (  ) 

check if linadd is enabled

Returns:
if linadd is enabled

Definition at line 99 of file KernelMachine.h.

void CKernelMachine::set_batch_computation_enabled ( bool  enable  ) 

set batch computation enabled

Parameters:
enable if batch computation shall be enabled

Definition at line 72 of file KernelMachine.h.

void CKernelMachine::set_kernel ( CKernel k  ) 

set kernel

Parameters:
k kernel

Definition at line 51 of file KernelMachine.h.

void CKernelMachine::set_linadd_enabled ( bool  enable  ) 

set linadd enabled

Parameters:
enable if linadd shall be enabled

Definition at line 90 of file KernelMachine.h.


Member Data Documentation

kernel

Definition at line 113 of file KernelMachine.h.

if batch computation is enabled

Definition at line 115 of file KernelMachine.h.

bool CKernelMachine::use_linadd [protected]

if linadd is enabled

Definition at line 117 of file KernelMachine.h.


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

SHOGUN Machine Learning Toolbox - Documentation