ApplyDerivativesKind.corewise_hessian#
- t3toolbox.backend.fitting.ApplyDerivativesKind.corewise_hessian(core_directions, r, s, frame, sweep, base_point)#
def corewise_hessian(self, core_directions, r, s, frame, sweep, base_point): # the lean sweep's xi / mu jets are base_point's own (xi through D, mu through L at the manifold frame # (D, U, L, R); through B and G at the corewise frame); omega^2 r, exactly as transpose weights it
The derivative of
transpose()’s corewise form along a core direction.K_r theta_hat = d/ds grad_theta <omega^2 r, S(Phi(theta + s theta_hat))> |_{s=0}attheta = base_point– the core-coordinate Hessian oftheta -> <omega^2 r, S(Phi(theta))>applied totheta_hat, with the residualrheld fixed (raw, weighted here exactly astransposeweights it). It is the sampling half of the exact Hessian’s curvature term; the geometry lifts a tangent totheta_hatand maps the result back.Needed only for
hessian='exact'. Raw(dB, dG)shaped like the directions (K + C),Wsummed. Mask-free by contract: on the uniform layer the kind’s own override masksthetaandtheta_hatwith the frame’s masks and re-masks the output.The base method is marked with
abc.abstractmethod()(the class is not anABC, so the marker changes nothing about instantiation):Problem.local_model(hessian='exact')reads the marker to reject a kind that does not implement it before any work, while the Gauss-Newton path never consults it.