npm.io
2.0.0 • Published 3 weeks ago

ml-kernel-sigmoid

Licence
MIT
Version
2.0.0
Deps
0
Size
4 kB
Vulns
0
Weekly
42.1K
Stars
1

kernel-sigmoid

NPM version build status npm download

Sigmoid (hyperbolic tangent) kernel.
See http://crsouza.com/2010/03/kernel-functions-for-machine-learning-applications/#sigmoid

Installation

npm i ml-kernel-sigmoid

Usage

new SigmoidKernel(options)

Options:

  • alpha - value for the alpha factor (default: 0.01).
  • constant - value for the constant (default: -Math.E).
kernel.compute(x, y)

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

License

MIT

Keywords