🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

ml-kernel-polynomial

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
k

ml-kernel-polynomial

The polynomial kernel

2.0.1
latest
100

Supply Chain Security

100

Vulnerability

70

Quality

81

Maintenance

100

License

Version published
Weekly downloads
78K
26%
Maintainers
5
Weekly downloads
 
Created
Issues
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

FAQs

Package last updated on 29 Jun 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts