Kernels
Mercer Kernels
MLKernels.ExponentialKernel
— Type.ExponentialKernel([α=1])
The exponential kernel is given by the formula:
where $\alpha$ is a scaling parameter of the Euclidean distance. The exponential kernel, also known as the Laplacian kernel, is an isotropic Mercer kernel. The constructor is aliased by LaplacianKernel
, so both names may be used:
SquaredExponentialKernel([α=1])
The squared exponential kernel, or alternatively the Gaussian kernel, is identical to the exponential kernel except that the Euclidean distance is squared:
where $\alpha$ is a scaling parameter of the squared Euclidean distance. Just like the exponential kernel, the squared exponential kernel is an isotropic Mercer kernel. The squared exponential kernel is more commonly known as the radial basis kernel within machine learning communities.
MLKernels.GammaExponentialKernel
— Type.GammaExponentialKernel([α=1 [,γ=1]])
The gamma exponential kernel is a generalization of the exponential and squared exponential kernels:
where $\alpha$ is a scaling parameter and $\gamma$ is a shape parameter.
RationalQuadraticKernel([α=1 [,β=1]])
The rational-quadratic kernel is given by:
where $\alpha$ is a scaling parameter and $\beta$ is a shape parameter. This kernel can be seen as an infinite sum of Gaussian kernels. If one sets $\alpha = \alpha_0 / \beta$, then taking the limit $\beta \rightarrow \infty$ results in the Gaussian kernel with scaling parameter $\alpha_0$.
MLKernels.GammaRationalKernel
— Type.GammaRationalKernel([α [,β [,γ]]])
The gamma-rational kernel is a generalization of the rational-quadratic kernel with an additional shape parameter:
where $\alpha$ is a scaling parameter and $\beta$ and $\gamma$ are shape parameters.
MLKernels.MaternKernel
— Type.MaternKernel([ν=1 [,θ=1]])
The Matern kernel is a Mercer kernel given by:
where $\Gamma$ is the gamma function, $K_{\nu}$ is the modified Bessel function of the second kind, $\nu > 0$ and $\theta > 0$.
MLKernels.LinearKernel
— Type.LinearKernel([a=1 [,c=1]])
The linear kernel is a Mercer kernel given by:
MLKernels.PolynomialKernel
— Type.PolynomialKernel([a=1 [,c=1 [,d=3]]])
The polynomial kernel is a Mercer kernel given by:
MLKernels.ExponentiatedKernel
— Type.ExponentiatedKernel([a=1])
The exponentiated kernel is a Mercer kernel given by:
MLKernels.PeriodicKernel
— Type.PeriodicKernel([α=1 [,p=π]])
The periodic kernel is given by:
where $\mathbf{x}$ and $\mathbf{y}$ are $n$ dimensional vectors. The parameters $p$ and $\alpha$ are scaling parameters for the periodicity and the magnitude, respectively. This kernel is useful when data has periodicity to it.
Negative Definite Kernels
MLKernels.PowerKernel
— Type.PowerKernel([γ=1])
The Power Kernel is a negative definite kernel given by:
MLKernels.LogKernel
— Type.LogKernel([α [,γ]])
The Log Kernel is a negative definite kernel given by:
Other Kernels
MLKernels.SigmoidKernel
— Type.SigmoidKernel([a=1 [,c=1]])
The Sigmoid Kernel is given by
The sigmoid kernel is a not a true kernel, although it has been used in application.