Semagle.Framework


Kernel

Namespace: Semagle.MachineLearning.SVM

Popular kernel functions definitions

Functions and values

Function or valueDescription
linear x1 x2
Signature: x1:^X -> x2:^X -> float
Type parameters: ^X, ^_arg3

Linear kernel function \((x_1 \cdot x_2)\)

polynomial gamma mu n x1 x2
Signature: gamma:float -> mu:float -> n:float -> x1:^X -> x2:^X -> float
Type parameters: ^X, ^_arg3

Polynomial kernel function \((\gamma*(x_1 \cdot x_2)+\mu)^n\)

rbf gamma x1 x2
Signature: gamma:float -> x1:^X -> x2:^X -> float
Type parameters: ^X, ^_arg3

Radial basis kernel function \(exp(-\gamma||x_1 - x_2||^2)\)

sigmoid gamma mu x1 x2
Signature: gamma:float -> mu:float -> x1:^X -> x2:^X -> float
Type parameters: ^X, ^_arg3

Sigmoid kernel function \(tanh(\gamma(x_1 \cdot x_2)+\mu)\)

Fork me on GitHub