LocalModel#

class t3toolbox.backend.optimizers.LocalModel#

The local model linearized at a point – the backend twin of the frontend t3toolbox.fitting.LocalModel (same name, one level down). Built by Problem.local_model; the frame sweep is computed once and reused by every method below.

Two modes, derived rather than stored (is_exact is curvature is not None):

  • Gauss-Newton (hessian='gauss_newton', the default): hvp(p) = Pi J^T omega^2 J Pi p (+ H_R p).

  • Exact (hessian='exact'): the exact Riemannian Hessian,

    hvp(p) = Pi [J^T omega^2 J Pi p + L^T (K_{A^T omega^2 r} - K_{grad f}) L Pi p] (+ H_R p),

    with L the geometry’s lift from coordinates to raw core variations, K_{A^T omega^2 r} the kind’s corewise_hessian() (the derivative of the corewise transpose at the fixed residual) and K_{grad f} the geometry’s tangential curvature (Absil, Mahony & Trumpf (2013), “An extrinsic look at the Riemannian Hessian”: the Weingarten term as <N, d^2 Phi> with N the normal part of A^T omega^2 r). On a corewise geometry it is the plain Hessian of f o Phi (no lift, no tangential term).

gn_quadratic / jacobian / retract mean the same in both modes (gn_quadratic is always ‖ω J Pi p‖² (+ <p, H_R p>)); quadratic is the mode’s model <p, H p>.

geom: t3toolbox.backend.common.typ.Any#
kind: t3toolbox.backend.common.typ.Any#
sample: t3toolbox.backend.common.typ.Any#
frame: t3toolbox.backend.common.typ.Tuple#
sweep: t3toolbox.backend.common.typ.Tuple#
residual: t3toolbox.backend.common.typ.Any#
n_w: int#
regularizer: t3toolbox.backend.common.typ.Any = None#
geom_aux: t3toolbox.backend.common.typ.Any = None#
curvature: t3toolbox.backend.common.typ.Any = None#
property is_exact: bool#
Return type:

bool

property misfit#
property regularization#
property objective#
property gradient: Tangent#
Return type:

Tangent

Methods#