GitHub - mljs/kernel-gaussian: The gaussian (radial basis function) kernel

Skip to content

Navigation Menu

Sign in

Appearance settings

ml-kernel-gaussian

NPM version build status npm download

The gaussian (radial basis function) kernel.

Installation

$ npm i ml-kernel-gaussian

Usage

new GaussianKernel(options)

Options:

  • sigma - value for the sigma parameter (default: 1).

kernel.compute(x, y)

Returns the dot product between x and y in feature space.

License

MIT