https://github.com/mljs/kernel-sigmoid
Sigmoid (hyperbolic tangent) kernel
https://github.com/mljs/kernel-sigmoid
Last synced: 4 months ago
JSON representation
Sigmoid (hyperbolic tangent) kernel
- Host: GitHub
- URL: https://github.com/mljs/kernel-sigmoid
- Owner: mljs
- License: mit
- Created: 2016-08-03T07:23:31.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2019-06-29T11:52:35.000Z (almost 6 years ago)
- Last Synced: 2025-02-05T12:40:50.693Z (5 months ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: History.md
- License: LICENSE
Awesome Lists containing this project
README
# kernel-sigmoid
[![NPM version][npm-image]][npm-url]
[![build status][travis-image]][travis-url]
[![npm download][download-image]][download-url]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](./LICENSE)
[npm-image]: https://img.shields.io/npm/v/ml-kernel-sigmoid.svg?style=flat-square
[npm-url]: https://npmjs.org/package/ml-kernel-sigmoid
[travis-image]: https://img.shields.io/travis/mljs/kernel-sigmoid/master.svg?style=flat-square
[travis-url]: https://travis-ci.org/mljs/kernel-sigmoid
[download-image]: https://img.shields.io/npm/dm/ml-kernel-sigmoid.svg?style=flat-square
[download-url]: https://npmjs.org/package/ml-kernel-sigmoid