#include <kernel.h>
Inheritance diagram for Kernel:
Public Member Functions | |
virtual | ~Kernel () |
virtual REAL | operator() (const Input &, const Input &) const =0 |
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 =0 |
Protected Attributes | |
pDataSet | ptd |
Definition at line 43 of file kernel.h.
|
|
|
The inner-product of two stored inputs with index i and j.
Reimplemented in Perceptron, and RBF. |
|
The inner-product of two input vectors.
Implemented in Linear, Polynomial, Stump, Perceptron, RBF, and Sigmoid. |
|
Store a dataset in order to compute the kernel matrix.
Reimplemented in Perceptron. |
|
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. Implemented in Linear, Polynomial, Stump, Perceptron, RBF, and Sigmoid. Referenced by SVM::SVM(). |
|
|