Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

ml-kernel-polynomial

mljs150.7kMIT2.0.1

The polynomial kernel

polynomial, kernel, data, mining, datamining, machine, learning

readme

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

changelog

2.0.1 (2019-06-29)

2.0.0 / 2015-11-18

  • refactor to a class

1.0.0 / 2015-11-18

  • first release