DocumentationClassesExponentiation

Class: Exponentiation

The Exponentiation kernel takes one base kernel and a scalar parameter \(p\) and combines them via

Python Reference

Constructors

new Exponentiation()

new Exponentiation(opts?): Exponentiation

Parameters

ParameterTypeDescription
opts?object-
opts.exponent?numberThe exponent for the base kernel
opts.kernel?anyThe base kernel

Returns Exponentiation

Defined in generated/gaussian_process/kernels/Exponentiation.ts:21

Properties

PropertyTypeDefault valueDefined in
_isDisposedbooleanfalsegenerated/gaussian_process/kernels/Exponentiation.ts:19
_isInitializedbooleanfalsegenerated/gaussian_process/kernels/Exponentiation.ts:18
_pyPythonBridgeundefinedgenerated/gaussian_process/kernels/Exponentiation.ts:17
idstringundefinedgenerated/gaussian_process/kernels/Exponentiation.ts:14
optsanyundefinedgenerated/gaussian_process/kernels/Exponentiation.ts:15

Accessors

py

Get Signature

get py(): PythonBridge

Returns PythonBridge

Set Signature

set py(pythonBridge): void

Parameters

ParameterType
pythonBridgePythonBridge

Returns void

Defined in generated/gaussian_process/kernels/Exponentiation.ts:36

Methods

__call__()

__call__(opts): Promise<ArrayLike[]>

Return the kernel k(X, Y) and optionally its gradient.

Parameters

ParameterTypeDescription
optsobject-
opts.eval_gradient?booleanDetermines whether the gradient with respect to the log of the kernel hyperparameter is computed.
opts.X?ArrayLike[]Left argument of the returned kernel k(X, Y)
opts.Y?ArrayLike[]Right argument of the returned kernel k(X, Y). If undefined, k(X, X) is evaluated instead.

Returns Promise<ArrayLike[]>

Defined in generated/gaussian_process/kernels/Exponentiation.ts:105


clone_with_theta()

clone_with_theta(opts): Promise<any>

Returns a clone of self with given hyperparameters theta.

Parameters

ParameterTypeDescription
optsobject-
opts.theta?ArrayLikeThe hyperparameters

Returns Promise<any>

Defined in generated/gaussian_process/kernels/Exponentiation.ts:149


diag()

diag(opts): Promise<ArrayLike>

Returns the diagonal of the kernel k(X, X).

The result of this method is identical to np.diag(self(X)); however, it can be evaluated more efficiently since only the diagonal is evaluated.

Parameters

ParameterTypeDescription
optsobject-
opts.X?ArrayLike[]Argument to the kernel.

Returns Promise<ArrayLike>

Defined in generated/gaussian_process/kernels/Exponentiation.ts:185


dispose()

dispose(): Promise<void>

Disposes of the underlying Python resources.

Once dispose() is called, the instance is no longer usable.

Returns Promise<void>

Defined in generated/gaussian_process/kernels/Exponentiation.ts:88


init()

init(py): Promise<void>

Initializes the underlying Python resources.

This instance is not usable until the Promise returned by init() resolves.

Parameters

ParameterType
pyPythonBridge

Returns Promise<void>

Defined in generated/gaussian_process/kernels/Exponentiation.ts:49


is_stationary()

is_stationary(opts): Promise<any>

Returns whether the kernel is stationary.

Parameters

ParameterType
optsobject

Returns Promise<any>

Defined in generated/gaussian_process/kernels/Exponentiation.ts:217