gpridge.instanton.manifold_ef¶
Identity-chart gradient-enhanced squared exponential.
The four blocks are the identity-chart reduction of
ManifoldEnergyForceKernel::covarianceEntry (a = 1/l^2, Jacobian = I):
EE = k EG = k a d_R GE = -k a d_L GG = k (a t - a^2 d_L d_R)
with k = sigma^2 exp(-a ||delta||^2 / 2) and delta = z_left - z_right. Internally the coordinate is w = z / l so that a = 1 and the joint matrix is scaled. The predictive mean does not depend on sigma^2 when the nugget is a fraction of that matrix. sigma^2 is the maximiser of the Gaussian marginal likelihood and sets the predictive variance.
Classes¶
Zero-mean joint GP on a scalar and its Cartesian gradient. |
Module Contents¶
- class gpridge.instanton.manifold_ef.ManifoldEnergyForce(dimension, length_scale=1.0, jitter=1e-10)¶
Zero-mean joint GP on a scalar and its Cartesian gradient.
Training rows are residual energies and residual gradients in the coordinate z. Queries return the posterior mean of the residual, its gradient, its Hessian, and the posterior variance of the gradient.
- dimension¶
- length_scale¶
- jitter¶
- z¶
- energy¶
- gradient¶
- sigma2 = 1.0¶
- log_marginal = None¶
- property n¶
- add(z, energy, gradient)¶
- marginal(length_scale)¶
Log marginal likelihood of the stored rows, including dw = l dz.
- fit_length_scale(grid)¶
- set_length_scale(length_scale)¶
- posterior(z, hessian=False, variance=False)¶
Return mean, gradient, optional Hessian (n,d,d) and gradient std (n,).