#include <kernel.h>
Inheritance diagram for Polynomial:
Public Member Functions | |
Polynomial (UINT d=3, REAL g=0.5, REAL c0=0) | |
Polynomial (std::istream &is) | |
virtual const id_t & | id () const |
virtual Polynomial * | create () const |
Create a new object using the default constructor. | |
virtual Polynomial * | clone () const |
Create a new object by replicating itself. | |
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 |
Protected Member Functions | |
virtual bool | serialize (std::ostream &, ver_list &) const |
virtual bool | unserialize (std::istream &, ver_list &, const id_t &=NIL_ID) |
Definition at line 83 of file kernel.h.
|
|
|
|
|
Create a new object by replicating itself.
return new Derived(*this);
Implements Kernel. |
|
Create a new object using the default constructor. The code for a derived class Derived is always return new Derived(); Implements Kernel. |
|
Implements Object. |
|
The inner-product of two input vectors.
Implements Kernel. Definition at line 95 of file kernel.h. References DOTPROD. |
|
Reimplemented from Kernel. Definition at line 30 of file kernel.cpp. References Polynomial::coef0, Polynomial::degree, Polynomial::gamma, and SERIALIZE_PARENT. |
|
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. |
|
Reimplemented from Kernel. Definition at line 36 of file kernel.cpp. References Polynomial::coef0, Polynomial::degree, Polynomial::gamma, Object::NIL_ID, and UNSERIALIZE_PARENT. |
|
Definition at line 85 of file kernel.h. Referenced by Polynomial::serialize(), Polynomial::set_params(), and Polynomial::unserialize(). |
|
Definition at line 84 of file kernel.h. Referenced by Polynomial::serialize(), Polynomial::set_params(), and Polynomial::unserialize(). |
|
Definition at line 85 of file kernel.h. Referenced by Polynomial::serialize(), Polynomial::set_params(), and Polynomial::unserialize(). |