
Definition at line 20 of file KernelPerceptron.h.
Public Member Functions | |
| CKernelPerceptron () | |
| virtual | ~CKernelPerceptron () |
| virtual bool | train () |
| virtual DREAL | classify_example (INT num) |
| virtual bool | load (FILE *srcfile) |
| virtual bool | save (FILE *dstfile) |
| virtual EClassifierType | get_classifier_type () |
| 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) |
| virtual void | set_labels (CLabels *lab) |
| virtual CLabels * | get_labels () |
| virtual DREAL | get_label (INT i) |
| void | set_max_train_time (DREAL t) |
| DREAL | get_max_train_time () |
Static Public Attributes | |
| static CParallel | parallel |
| static CIO | io |
| static CVersion | version |
Protected Attributes | |
| CKernel * | kernel |
| bool | use_batch_computation |
| bool | use_linadd |
| DREAL | max_train_time |
| CLabels * | labels |
| CKernelPerceptron::CKernelPerceptron | ( | ) |
constructor
Definition at line 15 of file KernelPerceptron.cpp.
| CKernelPerceptron::~CKernelPerceptron | ( | ) | [virtual] |
Definition at line 21 of file KernelPerceptron.cpp.
| bool CKernelPerceptron::train | ( | ) | [virtual] |
train KernelPerceptron
Reimplemented from CClassifier.
Definition at line 25 of file KernelPerceptron.cpp.
classify one specific example
| num | which example to classify |
Reimplemented from CClassifier.
Definition at line 51 of file KernelPerceptron.cpp.
| bool CKernelPerceptron::load | ( | FILE * | srcfile | ) | [virtual] |
load KernelPerceptron from file
| srcfile | file to load from |
Reimplemented from CClassifier.
Definition at line 40 of file KernelPerceptron.cpp.
| bool CKernelPerceptron::save | ( | FILE * | dstfile | ) | [virtual] |
save KernelPerceptron to file
| dstfile | file to save to |
Reimplemented from CClassifier.
Definition at line 45 of file KernelPerceptron.cpp.
| virtual EClassifierType CKernelPerceptron::get_classifier_type | ( | ) | [virtual] |
get classifier type
Reimplemented from CClassifier.
Definition at line 55 of file KernelPerceptron.h.
| void CKernelMachine::set_kernel | ( | CKernel * | k | ) | [inherited] |
| CKernel* CKernelMachine::get_kernel | ( | ) | [inherited] |
| void CKernelMachine::set_batch_computation_enabled | ( | bool | enable | ) | [inherited] |
set batch computation enabled
| enable | if batch computation shall be enabled |
Definition at line 72 of file KernelMachine.h.
| bool CKernelMachine::get_batch_computation_enabled | ( | ) | [inherited] |
check if batch computation is enabled
Definition at line 81 of file KernelMachine.h.
| void CKernelMachine::set_linadd_enabled | ( | bool | enable | ) | [inherited] |
set linadd enabled
| enable | if linadd shall be enabled |
Definition at line 90 of file KernelMachine.h.
| bool CKernelMachine::get_linadd_enabled | ( | ) | [inherited] |
check if linadd is enabled
Definition at line 99 of file KernelMachine.h.
classify kernel machine
| output | where resuling labels are stored |
Reimplemented from CClassifier.
Reimplemented in CMultiClassSVM, and CSVM.
Definition at line 23 of file KernelMachine.cpp.
| virtual void CClassifier::set_labels | ( | CLabels * | lab | ) | [virtual, inherited] |
| virtual CLabels* CClassifier::get_labels | ( | ) | [virtual, inherited] |
get one specific label
| i | index of label to get |
Definition at line 89 of file Classifier.h.
| void CClassifier::set_max_train_time | ( | DREAL | t | ) | [inherited] |
set maximum training time
| t | maximimum training time |
Definition at line 95 of file Classifier.h.
| DREAL CClassifier::get_max_train_time | ( | ) | [inherited] |
get maximum training time
Definition at line 101 of file Classifier.h.
CKernel* CKernelMachine::kernel [protected, inherited] |
kernel
Definition at line 113 of file KernelMachine.h.
bool CKernelMachine::use_batch_computation [protected, inherited] |
if batch computation is enabled
Definition at line 115 of file KernelMachine.h.
bool CKernelMachine::use_linadd [protected, inherited] |
if linadd is enabled
Definition at line 117 of file KernelMachine.h.
DREAL CClassifier::max_train_time [protected, inherited] |
maximum training time
Definition at line 111 of file Classifier.h.
CLabels* CClassifier::labels [protected, inherited] |
labels
Definition at line 114 of file Classifier.h.
CParallel CSGObject::parallel [static, inherited] |
Definition at line 105 of file SGObject.h.
CIO CSGObject::io [static, inherited] |
Definition at line 106 of file SGObject.h.
CVersion CSGObject::version [static, inherited] |
Definition at line 107 of file SGObject.h.