Home Reference Source
import SigmoidKernel from '@jsmlt/jsmlt/src/kernel/sigmoid.js'
public class | source

SigmoidKernel

Extends:

Kernel → SigmoidKernel

The Sigmoid kernel. The formula of this kernel is as follows: tanh(gamma * <x, y> + coef0)

Constructor Summary

Public Constructor
public

constructor(options: Object)

Initialize the Sigmoid kernel with user-specified parameters

Member Summary

Public Members
public

Bias coefficient (not part of the dot product)

public

Normalization parameter of basic dot product

Method Summary

Public Methods
public

apply(x: *, y: *): *

Inherited Summary

From class Kernel
public

Evaluate the kernel on a pair of data points

Public Constructors

public constructor(options: Object) source

Initialize the Sigmoid kernel with user-specified parameters

Params:

NameTypeAttributeDescription
options Object
  • optional

User-defined options

options.gamma number
  • optional
  • default: 1

Normalization parameter of basic dot product

options.coef0 number
  • optional
  • default: 1

Bias coefficient (not part of the dot product)

Public Members

public coef0: number source

Bias coefficient (not part of the dot product)

public gamma: number source

Normalization parameter of basic dot product

Public Methods

public apply(x: *, y: *): * source

Evaluate the kernel on a pair of data points

Override:

Kernel#apply

Params:

NameTypeAttributeDescription
x *
y *

Return:

*

See: