A generic KernelMachine interface.
A kernel machine is defined as
where is the number of training examples
are the weights assigned to each training example
is the kernel and
the bias.
Using an a-priori choosen kernel, the and bias are determined in a training procedure.
Definition at line 38 of file KernelMachine.h.
Public Member Functions | |
CKernelMachine () | |
virtual | ~CKernelMachine () |
void | set_kernel (CKernel *k) |
CKernel * | get_kernel () |
void | set_batch_computation_enabled (bool enable) |
bool | get_batch_computation_enabled () |
void | set_linadd_enabled (bool enable) |
bool | get_linadd_enabled () |
virtual CLabels * | classify (CLabels *output=NULL) |
Protected Attributes | |
CKernel * | kernel |
bool | use_batch_computation |
bool | use_linadd |
CKernelMachine::CKernelMachine | ( | ) |
default constructor
Definition at line 13 of file KernelMachine.cpp.
CKernelMachine::~CKernelMachine | ( | ) | [virtual] |
destructor
Definition at line 18 of file KernelMachine.cpp.
classify kernel machine
output | where resuling labels are stored |
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
Definition at line 81 of file KernelMachine.h.
CKernel* CKernelMachine::get_kernel | ( | ) |
bool CKernelMachine::get_linadd_enabled | ( | ) |
check if linadd is enabled
Definition at line 99 of file KernelMachine.h.
void CKernelMachine::set_batch_computation_enabled | ( | bool | enable | ) |
set batch computation enabled
enable | if batch computation shall be enabled |
Definition at line 72 of file KernelMachine.h.
void CKernelMachine::set_kernel | ( | CKernel * | k | ) |
void CKernelMachine::set_linadd_enabled | ( | bool | enable | ) |
set linadd enabled
enable | if linadd shall be enabled |
Definition at line 90 of file KernelMachine.h.
CKernel* CKernelMachine::kernel [protected] |
kernel
Definition at line 113 of file KernelMachine.h.
bool CKernelMachine::use_batch_computation [protected] |
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.