JSPM

ml-kernel-sigmoid

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 67289
  • Score
    100M100P100Q167877F
  • License MIT

Sigmoid (hyperbolic tangent) kernel

Package Exports

  • ml-kernel-sigmoid

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ml-kernel-sigmoid) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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