ml-kernel-gaussian

The gaussian (radial basis function) kernel

Usage no npm install needed!

<script type="module">
  import mlKernelGaussian from 'https://cdn.skypack.dev/ml-kernel-gaussian';
</script>

README

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