ml-kernel-sigmoid
v1.0.1
Published
Sigmoid (hyperbolic tangent) kernel
Downloads
79,222
Readme
kernel-sigmoid
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.