t3_entries_corewise_hessian_from_sweep#
- t3toolbox.backend.entries.t3_entries_corewise_hessian_from_sweep(c, index, core_pair, core_directions, frame_sweep)#
def t3_entries_corewise_hessian_from_sweep( c: NDArray, # residual (omega^2 applied), shape=W+C index: NDArray, # int, shape=(d,)+W core_pair: typ.Tuple[ typ.Sequence[NDArray], # tucker_cores of theta. len=d, elm_shape=C+(ni,Ni) typ.Sequence[NDArray], # tt_cores of theta. len=d, elm_shape=C+(ri,ni,r(i+1)) ], # = TuckerTensorTrain.data core_directions: typ.Tuple[ typ.Sequence[NDArray], # Tucker directions theta_hat. len=d, elm_shape=K+C+(ni,Ni) typ.Sequence[NDArray], # TT directions theta_hat. len=d, elm_shape=K+C+(ri,ni,r(i+1)) ], frame_sweep: typ.Tuple[typ.Sequence[NDArray], typ.Sequence[NDArray]], # (xis, mus) of theta ) -> typ.Tuple[ typ.Tuple[NDArray, ...], # Tucker block of K theta_hat. len=d, elm_shape=K+C+(ni,Ni) typ.Tuple[NDArray, ...], # TT block of K theta_hat. len=d, elm_shape=K+C+(ri,ni,r(i+1)) ]:
t3_entries_corewise_hessian()reusing a precomputed leanframe_sweep(tv_precompute_entries_frame_sweep(), the same at the manifold frame and at the corewise frame of its base pointtheta = (D, L)) – the reuse hook for a local model; it must becore_pair’s own.- Parameters:
c (NDArray)
index (NDArray)
core_pair (t3toolbox.backend.common.typ.Tuple[t3toolbox.backend.common.typ.Sequence[NDArray], t3toolbox.backend.common.typ.Sequence[NDArray]])
core_directions (t3toolbox.backend.common.typ.Tuple[t3toolbox.backend.common.typ.Sequence[NDArray], t3toolbox.backend.common.typ.Sequence[NDArray]])
frame_sweep (t3toolbox.backend.common.typ.Tuple[t3toolbox.backend.common.typ.Sequence[NDArray], t3toolbox.backend.common.typ.Sequence[NDArray]])
- Return type:
t3toolbox.backend.common.typ.Tuple[t3toolbox.backend.common.typ.Tuple[NDArray, …], t3toolbox.backend.common.typ.Tuple[NDArray, …]]