GaussNewtonModel.evaluate#
- t3toolbox.fitting.GaussNewtonModel.evaluate(p)#
def evaluate(self, p: t3m.T3Tangent) -> NDArray: # m(p), shape C
The quadratic-model value
m(p) = c + gᵀp + ½ pᵀ H pwithH = JᵀJ, reusing the cachedcandgand one forward apply: the quadratic term needs only½ pᵀ H p = ½‖𝒥 Π p‖², not a Hessian apply.pis projected here, shared by the linear term⟨g, Πp⟩and the quadratic. Equals½‖r + 𝒥 Π p‖²exactly (the objective is quadratic in the ambient tensor). With aregularizer,candgalready carryρ/g_R, so only the quadratic½⟨p, H_R p⟩is added here.