bebi103.gp.polynomial_kernel

bebi103.gp.polynomial_kernel(x1, x2, sigma_b=1.0, sigma_p=1.0, d=1)

Polynomial kernel: (sigma_0^2 + sigma_p^2 x1 . x2)^d

Parameters
  • x1 (float or array) – Point in the space of covariates.

  • x2 (float or array) – Point in the space of covariates.

  • sigma_b (float, default 1.0) – Offset of polynomial kernel.

  • sigma_p (float, default 1.0) – Scale of polynomial kernel.

  • d (int, default 1) – Degree of polynomial kernel

Returns

output – Value of returned by kernel evaluated at x1, x2.

Return type

float