rgpycrumbs.surfaces.gradient_nystrom

Classes

NystromGradientIMQ

Memory-efficient Nystrom-approximated gradient-enhanced IMQ surface.

Functions

_stable_nystrom_grad_imq_solve(x, y_full, x_inducing, ...)

_nystrom_grad_imq_predict(x_query, x_inducing, ...)

_nystrom_grad_imq_var(x_query, x_inducing, W, epsilon)

Module Contents

rgpycrumbs.surfaces.gradient_nystrom._stable_nystrom_grad_imq_solve(x, y_full, x_inducing, noise_scalar, epsilon)[source]
rgpycrumbs.surfaces.gradient_nystrom._nystrom_grad_imq_predict(x_query, x_inducing, alpha_m, epsilon)[source]
rgpycrumbs.surfaces.gradient_nystrom._nystrom_grad_imq_var(x_query, x_inducing, W, epsilon)[source]
class rgpycrumbs.surfaces.gradient_nystrom.NystromGradientIMQ(x, y, gradients=None, n_inducing=300, nimags=None, smoothing=None, length_scale=None, optimize=True, seed=NYSTROM_RANDOM_SEED, **kwargs)[source]

Bases: rgpycrumbs.surfaces._base.BaseGradientSurface

Memory-efficient Nystrom-approximated gradient-enhanced IMQ surface.

Added in version 1.1.0.

Changed in version 1.14.0: The default epsilon is the median distance between inducing points. The default smoothing is None, which treats the data as exact. optimize=True fits epsilon and the noise on the inducing subset, as GradientIMQ does on all points, instead of being ignored. The seed argument picks the random inducing subset.

n_inducing = 300[source]
nimags = None[source]
seed = 42[source]
_fit(smoothing, length_scale, optimize)[source]

Internal method to perform parameter optimization.

_solve()[source]

Internal method to solve the linear system for weights.

_predict_chunk(chunk)[source]

Internal method for batch prediction.

_var_chunk(chunk)[source]

Internal method for batch variance.