PolynomialKernel
Extends:
Kernel → PolynomialKernel
The Polynomial kernel. The formula of this kernel is as follows: (gamma * <x, y> + coef0)^degree
Constructor Summary
Public Constructor | ||
public |
constructor(options: Object) Initialize the Polynomial kernel with user-specified parameters |
Member Summary
Public Members | ||
public |
Bias coefficient (not part of the dot product) |
|
public |
Degree of the polynomial |
|
public |
Normalization parameter of basic dot product |
Method Summary
Public Methods | ||
public |
apply(x: *, y: *): * |
Inherited Summary
From class Kernel | ||
public |
Evaluate the kernel on a pair of data points |
Public Constructors
public constructor(options: Object) source
Initialize the Polynomial kernel with user-specified parameters
Params:
Name | Type | Attribute | Description |
options | Object |
|
User-defined options |
options.gamma | number |
|
Normalization parameter of basic dot product |
options.coef0 | number |
|
Bias coefficient (not part of the dot product) |
options.degree | number |
|
Degree of the polynomial |
Public Members
Public Methods
public apply(x: *, y: *): * source
Evaluate the kernel on a pair of data points
Override:
Kernel#applyParams:
Name | Type | Attribute | Description |
x | * | ||
y | * |
Return:
* |