https://github.com/mljs/kernel-polynomial
The polynomial kernel
https://github.com/mljs/kernel-polynomial
Last synced: 4 months ago
JSON representation
The polynomial kernel
- Host: GitHub
- URL: https://github.com/mljs/kernel-polynomial
- Owner: mljs
- License: mit
- Created: 2015-11-18T15:03:44.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-06-29T12:05:11.000Z (almost 6 years ago)
- Last Synced: 2024-10-22T22:41:59.350Z (8 months ago)
- Language: JavaScript
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: History.md
- License: LICENSE
Awesome Lists containing this project
README
# ml-kernel-polynomial
[![NPM version][npm-image]][npm-url]
[![build status][travis-image]][travis-url]
[![npm download][download-image]][download-url]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](./LICENSE)
[npm-image]: https://img.shields.io/npm/v/ml-kernel-polynomial.svg?style=flat-square
[npm-url]: https://npmjs.org/package/ml-kernel-polynomial
[travis-image]: https://img.shields.io/travis/mljs/kernel-polynomial/master.svg?style=flat-square
[travis-url]: https://travis-ci.org/mljs/kernel-polynomial
[download-image]: https://img.shields.io/npm/dm/ml-kernel-polynomial.svg?style=flat-square
[download-url]: https://npmjs.org/package/ml-kernel-polynomial