ml-kernel-polynomial

2.0.1 • Public • Published

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

Package Sidebar

Install

npm i ml-kernel-polynomial

Weekly Downloads

16,029

Version

2.0.1

License

MIT

Unpacked Size

3.8 kB

Total Files

5

Last publish

Collaborators

  • mljs-bot
  • stropitek
  • targos
  • lpatiny