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's bare primitives, bundled so the GN model is generic over the kind. |
Functions#
|
The |
|
The |
|
Per- |
|
Per- |
|
The probe sampling kind (vector-valued: one free mode per probe), optionally per-mode |
|
The apply-derivatives sampling kind (operator only): symmetric directional derivatives of the |
|
The entries-derivatives sampling kind: like |
|
The probe-derivatives sampling kind: vector-valued (one free mode per probe), so the residual |
Module Contents#
- APPLY#
- ENTRIES#
- PROBE#