#include <kernel.h>
Inheritance diagram for Polynomial:
Public Member Functions | |
Polynomial (UINT d, REAL g, REAL c0) | |
virtual REAL | operator() (const Input &a, const Input &b) const |
The inner-product of two input vectors. | |
virtual void | set_params (SVM_detail *) const |
Public Attributes | |
UINT | degree |
REAL | gamma |
REAL | coef0 |
Definition at line 71 of file kernel.h.
|
|
|
The inner-product of two input vectors.
Implements Kernel. Definition at line 77 of file kernel.h. References DOTPROD. |
|
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. Definition at line 151 of file svm.cpp. References Polynomial::coef0, Polynomial::degree, and Polynomial::gamma. |
|
Definition at line 73 of file kernel.h. Referenced by Polynomial::set_params(). |
|
Definition at line 72 of file kernel.h. Referenced by Polynomial::set_params(). |
|
Definition at line 73 of file kernel.h. Referenced by Polynomial::set_params(). |