2.0.0 • Published 8 years ago

ml-polynomial-kernel v2.0.0

Weekly downloads
6
License
MIT
Repository
github
Last release
8 years ago

ml-polynomial-kernel

NPM version build status David deps npm download

The polynomial kernel

Installation

$ npm install ml-polynomial-kernel

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