Intel® oneAPI Data Analytics Library Developer Guide and Reference
Kernel Functions
A kernel function takes input vectors from the original (p-dimensional) space and returns the dot product of the vectors in the s-dimensional feature space. Thus, having
and
, the kernel function is
Where
is a vector-valued function:
.
If
, the kernel is linear. Kernels are used in the SVM model, but for some tasks they could be used separately to transform vectors from one space to another.
The following table describes current device support:
Kernel type |
CPU |
GPU |
|---|---|---|
Linear |
Yes |
Yes |
Polynomial |
Yes |
No |
RBF |
Yes |
Yes |
Sigmoid |
Yes |
No |
Examples: Linear Kernel
oneAPI DPC++
Batch Processing:
oneAPI C++
Batch Processing:
Examples: Polynomial Kernel
oneAPI C++
Batch Processing:
Examples: RBF Kernel
oneAPI DPC++
Batch Processing:
oneAPI C++
Batch Processing:
Examples: Sigmoid Kernel
oneAPI C++
Batch Processing: