klus.kernels module¶
- class klus.kernels.gaussianKernel(sigma)[source]¶
Bases:
object
Gaussian kernel with bandwidth sigma.
- class klus.kernels.gaussianKernelGeneralized(sigma)[source]¶
Bases:
object
Generalized Gaussian kernel with bandwidths sigma = (sigma_1, ..., sigma_d).
- class klus.kernels.laplacianKernel(sigma)[source]¶
Bases:
object
Laplacian kernel with bandwidth sigma.
- class klus.kernels.polynomialKernel(p, c=1)[source]¶
Bases:
object
Polynomial kernel with degree p and inhomogeneity c.
- class klus.kernels.periodicKernel1D(p, sigma)[source]¶
Bases:
object
One-dimensional periodic kernel with frequency p and bandwidth sigma.
- class klus.kernels.stringKernel(kn=2, l=0.9)[source]¶
Bases:
object
String kernel implementation based on Marianna Madry's C++ code, see https://github.com/mmadry/string_kernel.
- class klus.kernels.productKernel(k)[source]¶
Bases:
object
Product of one-dimensional kernels, i.e., k(x) = k(x_1) ... k(x_d).