kernel-sigmoid

June 5, 2026 ยท View on GitHub

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

Contents

  1. 1Installation
  2. 2Usage
  3. 2.1new SigmoidKernel(options)
  4. 2.2kernel.compute(x, y)
  5. 3License