tv_probe_derivatives#
- t3toolbox.backend.sampling_derivatives.tv_probe_derivatives(ww, pp, variation, frame, order)#
def tv_probe_derivatives( ww: typ.Sequence[NDArray], # probe vectors X, len=d, elm_shape=W+(Ni,) pp: typ.Sequence[NDArray], # perturbation vectors P, len=d, elm_shape=W+(Ni,) variation: typ.Tuple[ typ.Sequence[NDArray], # var_tucker_cores V. len=d, elm_shape=K+C+(nUi,Ni) typ.Sequence[NDArray], # var_tt_cores H. len=d, elm_shape=K+C+(rLi,nDi,rR(i+1)) ], # = T3Variations.data frame: typ.Tuple[ typ.Sequence[NDArray], # down_tucker_cores D. len=d typ.Sequence[NDArray], # up_tt_cores U. len=d typ.Sequence[NDArray], # left_tt_cores L. len=d typ.Sequence[NDArray], # right_tt_cores R. len=d ], # = T3Frame.data = (down, up, left, right) = (D, U, L, R) order: int, # highest derivative order ) -> typ.Tuple[NDArray, ...]: # z_jets. len=d, elm_shape=(order+1,)+W+K+C+(Ni,)
Symmetric derivatives of probing a tangent vector, in one repeated direction (Riemannian J^(s)).
The probe-derivative analog of
probing.tv_probe(): returns, for each modei, the stacky_i^(t) = d^t/ds^t [J^(s) v]_i (X + s P)|_0fort=0..order, wherevis the tangent vector represented by(frame, variation). Index0is the ordinary tangent probe.Identical structure to
t3_probe_derivatives()but on the tangent calculus: a frame sweep (frame cores) and a variation sweep. Fullorder + W + K + Cstacking (frame-inner, mirroring tv_probe): probe stackW, tangent stackK(a batch of tangents sharing the frame, on the variation cores), frame stackC; any may be empty.The symmetric-derivative formulation is not in the published T4S paper; verified against
dense_probe_derivatives()on the densified tangent. (Project write-up in preparation.)See also
t3_probe_derivatives,compute_sigma_jets,compute_tau_jets,compute_deta_jets,assemble_tangent_z_jets,t3toolbox.backend.probing.tv_probe- Parameters:
ww (t3toolbox.backend.common.typ.Sequence[NDArray])
pp (t3toolbox.backend.common.typ.Sequence[NDArray])
variation (t3toolbox.backend.common.typ.Tuple[t3toolbox.backend.common.typ.Sequence[NDArray], t3toolbox.backend.common.typ.Sequence[NDArray]])
frame (t3toolbox.backend.common.typ.Tuple[t3toolbox.backend.common.typ.Sequence[NDArray], t3toolbox.backend.common.typ.Sequence[NDArray], t3toolbox.backend.common.typ.Sequence[NDArray], t3toolbox.backend.common.typ.Sequence[NDArray]])
order (int)
- Return type:
t3toolbox.backend.common.typ.Tuple[NDArray, …]