aquakin.LaplaceConfig#
- class aquakin.LaplaceConfig(method='fd', ridge=1e-06, eig_keep=0.01, fd_step=0.001, dtmax=None)[source]#
Bases:
objectLaplace-posterior settings.
Pass an instance to
laplace=to enable the posterior with tuning;laplace=Trueuses these defaults andlaplace=Falsedisables it.- Parameters:
method ({"fd", "gauss_newton"}) – How the unconstrained-space Hessian is formed:
"fd"(default) finite-differences the gradient;"gauss_newton"usesJ^T Jwith the residual Jacobian by AD (PSD by construction, Fisher fornll).ridge (float) – Ridge added to the Hessian before inversion.
eig_keep (float) – Relative eigenvalue floor for the eigen-truncated covariance.
fd_step (float) – Relative step for the finite-difference Hessian (
method="fd").dtmax (float, optional) – If given, rebuild the reactor with this
dtmaxcap for the Hessian pass only – a tighter solve for the second-order-sensitive covariance.
- __init__(method='fd', ridge=1e-06, eig_keep=0.01, fd_step=0.001, dtmax=None)#
- Parameters:
method (str)
ridge (float)
eig_keep (float)
fd_step (float)
dtmax (float | None)
- Return type:
None
Methods
__init__([method, ridge, eig_keep, fd_step, ...])Attributes
dtmaxeig_keepfd_stepmethodridge