Common Kernel Functions - 5.2 English - 68552

AOCL API Guide (68552)

Document ID
68552
Release Date
2025-12-29
Version
5.2 English
  1. Linear Kernel:

    Computes the standard dot product of two vectors in the original feature space. Useful if the data are approximately linearly separable.

    \[K(x, y) = x \cdot y.\]
  2. RBF (Radial Basis Function) Kernel:

    Projects every data point into an infinite-dimensional feature space, enabling nonlinear decision boundaries. Due to its flexibility, the RBF kernel often works well on a wide range of datasets and is a common default method.

    \[K(x, y) = \exp(-\gamma \|x - y\|^2).\]
  3. Polynomial Kernel:

    Maps data points into higher-dimensional feature space via polynomial terms. Useful for capturing polynomial relationships between features.

    \[K(x, y) = (\gamma x \cdot y + c)^d.\]
  4. Sigmoid Kernel:

    Similar to neural network activation functions. Sometimes used for certain data distributions, though not as common as RBF or polynomial.

    \[K(x, y) = \tanh(\gamma x \cdot y + c).\]