LocalModel.gradient#

t3toolbox.fitting.LocalModel.gradient()#
def gradient(self):  # g = Π 𝒥ᵀ r (+ g_R), a tangent at frame

The gradient g = geometry.project(𝒥ᵀ r) (the Gauss-Newton Jᵀr), a tangent at frame, plus the regularizer gradient g_R when set.

On the manifold geometry this is the gauged Riemannian gradient; on the corewise geometry it is the raw core gradient 𝒥ᵀr (a tangent at (B,G,G,G), no Π). The same in both modes: an exact model did its one misfit transpose at construction and reads it here, bit for bit.