The polynomial kernel.
$ npm i ml-kernel-polynomial
.
Options:
degree
- degree of the polynomial (default: 1).constant
- polynomial constant (default: 1).scale
- polynomial scale (default: 1).
Returns the dot product between x
and y
in feature space.