PARyOpt.kernel package

Submodules

PARyOpt.kernel.kernel_function module

class PARyOpt.kernel.kernel_function.KernelFunction[source]

Bases: object

Attributes:

Variables:
  • theta – Kernel parameters. Can be None, a scalar, or a vector. Should be initialized to the appropriate type/len during initialization.
  • theta0 – Scaling factor
derivative(x1: <built-in function array>, x2: <built-in function array>) → <built-in function array>[source]

Evaluate the derivative of the kernel

Parameters:
  • x1 – location 1
  • x2 – location 2
Returns:

eval(x1: <built-in function array>, x2: <built-in function array>) → float[source]

Evaluate the kernel function

Parameters:
  • x1 – location 1
  • x2 – location 2
Returns:

theta = None
theta0 = 1.0

PARyOpt.kernel.matern module

class PARyOpt.kernel.matern.Matern32[source]

Bases: PARyOpt.kernel.kernel_function.KernelFunction

3/2 matern function rbf

derivative(x1: <built-in function array>, x2: <built-in function array>) → <built-in function array>[source]

Evaluate the derivative of the kernel

Parameters:
  • x1 – location 1
  • x2 – location 2
Returns:

eval(x1: <built-in function array>, x2: <built-in function array>) → float[source]

Evaluate the kernel function

Parameters:
  • x1 – location 1
  • x2 – location 2
Returns:

theta = 1.0
class PARyOpt.kernel.matern.Matern52[source]

Bases: PARyOpt.kernel.kernel_function.KernelFunction

5/2 matern function rbf

derivative(x1: <built-in function array>, x2: <built-in function array>) → <built-in function array>[source]

Evaluate the derivative of the kernel

Parameters:
  • x1 – location 1
  • x2 – location 2
Returns:

eval(x1: <built-in function array>, x2: <built-in function array>) → float[source]

Evaluate the kernel function

Parameters:
  • x1 – location 1
  • x2 – location 2
Returns:

theta = 1.0

PARyOpt.kernel.squared_exponential module

class PARyOpt.kernel.squared_exponential.SquaredExponential[source]

Bases: PARyOpt.kernel.kernel_function.KernelFunction

Squared exponential rbf

derivative(x1: <built-in function array>, x2: <built-in function array>) → <built-in function array>[source]

Evaluate the derivative of the kernel

Parameters:
  • x1 – location 1
  • x2 – location 2
Returns:

eval(x1: <built-in function array>, x2: <built-in function array>) → float[source]

Evaluate the kernel function

Parameters:
  • x1 – location 1
  • x2 – location 2
Returns:

theta = 1.0

Module contents