An open API service indexing awesome lists of open source software.

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

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