fitting#
Sampling-kind primitives for the geometry-generic Gauss-Newton fitting model.
The Gauss-Newton model m(p) = c + gᵀp + ½ pᵀ(JᵀJ)p of a least-squares objective factors over two
independent choices, and the fitting layer is generic in both:
the sampling kind (apply / entries / probe) – the bare single-sample Jacobian
𝒥/ its transpose𝒥ᵀ(fromt3toolbox.backend.probing), plus the kind-specific‖·‖²reduction over the sample stack; andthe geometry (manifold / corewise) – the gauge projection
Π(geometry.project), with the Riemannian forwardJ = 𝒥∘Πand gradientJᵀr = Π∘𝒥ᵀr.
This module supplies the kind half: a SamplingKind descriptor bundling the bare probing
primitives + the reduction per kind (APPLY / ENTRIES / PROBE). The
geometry half lives in the geometry (t3toolbox.manifold.MANIFOLD /
COREWISE); the frontend t3toolbox.fitting.GaussNewtonModel
composes the two. The §6.3 corewise substitution (U,O,P,Q) -> (U,G,G,G) is now nothing but
CorewiseGeometry.frame – there is no separate corewise backend.
probe is vector-valued (one free mode per probe), so its residual / forward output is a sequence of
d arrays and its reduction sums the free mode too; apply / entries are the scalar all-modes special
case. The objective constant c = ½‖r‖² is just ½ · sumsq(r) (the same reduction as the model’s
quadratic term ½‖𝒥Πp‖²), so the kind needs no separate objective function.
Attributes#
Classes#
A sampling kind: the bare |
|
Kinds whose output is a scalar per measurement (apply / entries): every mode is contracted, so |
|
Kinds whose output is a vector per measurement per mode (probe): one free mode each, so the |
|
The all-modes |
|
The all-modes |
|
The vector-valued |
|
Symmetric directional derivatives of the all-modes apply, orders |
|
|
|
Vector-valued derivative probing: the residual is a list of |
Functions#
|
The |
|
The |
|
Per- |
|
Per- |
Module Contents#
- APPLY#
- ENTRIES#
- PROBE#
- probe_kind#
- apply_derivatives_kind#
- entries_derivatives_kind#
- probe_derivatives_kind#