npm.io
3.0.0 • Published 5 months ago

ml-kernel-polynomial

Licence
MIT
Version
3.0.0
Deps
0
Size
4 kB
Vulns
0
Weekly
0

ml-kernel-polynomial

NPM version build status npm download

The polynomial kernel.

Installation

$ npm i ml-kernel-polynomial.

Usage

new PolynomialKernel(options)

Options:

  • degree - degree of the polynomial (default: 1).
  • constant - polynomial constant (default: 1).
  • scale - polynomial scale (default: 1).
kernel.compute(x, y)

Returns the dot product between x and y in feature space.

License

MIT

Keywords