#include <kernel.h>
Inheritance diagram for Perceptron:


Public Member Functions | |
| virtual REAL | operator() (const Input &a, const Input &b) const |
| The inner-product of two input vectors. | |
| virtual void | set_data (const pDataSet &pd) |
| Store a dataset in order to compute the kernel matrix. | |
| virtual REAL | matrix (UINT i, UINT j) const |
| The inner-product of two stored inputs with index i and j. | |
| virtual void | set_params (SVM_detail *) const |
Protected Attributes | |
| std::vector< REAL > | x_norm2 |
| cached inner-product of data input | |
Definition at line 90 of file kernel.h.
|
||||||||||||
|
The inner-product of two stored inputs with index i and j.
Reimplemented from Kernel. Reimplemented in RBF. Definition at line 106 of file kernel.h. References DOTPROD, and LearnModel::ptd. |
|
||||||||||||
|
The inner-product of two input vectors.
Implements Kernel. Reimplemented in RBF. Definition at line 95 of file kernel.h. References lemga::kernel::norm_2(). |
|
|
Store a dataset in order to compute the kernel matrix.
Reimplemented from Kernel. Definition at line 99 of file kernel.h. References DOTPROD, and LearnModel::ptd. |
|
|
In order to keep the SVM interface simple and avoid member functions specific to kernels (e.g., set_gamma()), we use Kernel to pass kernel parameters to SVM_detail. Implements Kernel. Reimplemented in RBF. |
|
|
cached inner-product of data input
|
1.4.6