entries_model#
- t3toolbox.fitting.entries_model(geometry, x, index, residual, regularizer=None, hessian='gauss_newton', curvature_damping=None)#
def entries_model( geometry, # MANIFOLD / COREWISE (or the UNIFORM_* twin for a uniform x) x: typ.Union[t3.TuckerTensorTrain, ut3.UniformTuckerTensorTrain], # the current point index: NDArray, # int, shape=(d,)+W -- the grid points residual: NDArray, # r = entries(x) − y, shape W+C regularizer: typ.Any = None, # optional regularizer, e.g. optimizers.IdentityRegularizer(λ) hessian: str = 'gauss_newton', # or 'exact' (case-insensitive): the model's mode curvature_damping: typ.Optional[float] = None, # exact only: the lift damping; None = the geometry's ) -> LocalModel:
The local model of an all-modes
entriesleast-squares objective atx, ongeometry.Identical to
apply_model()but the measurements are tensor entries at integer grid pointsindex(shape(d,)+W) rather than applies against probe vectors.hessian/curvature_dampingas there.- Parameters:
x (t3toolbox.backend.common.typ.Union[TuckerTensorTrain, UniformTuckerTensorTrain])
index (NDArray)
residual (NDArray)
regularizer (t3toolbox.backend.common.typ.Any)
hessian (str)
curvature_damping (t3toolbox.backend.common.typ.Optional[float])
- Return type: