UT3Weights.from_ut3svd#
- classmethod t3toolbox.uniform_tucker_tensor_train.UT3Weights.from_ut3svd(x, **kwargs)#
def from_ut3svd(cls, x: 'UniformTuckerTensorTrain', **kwargs) -> 'UT3Weights':
The singular values of
xas a weight object – the canonical (unmodified) sigmas, sofrom_ut3svd(x).reciprocal()is the inverse-sigma (Grasedyck-Kramer) weighting. Uniform twin offrom_t3svd().**kwargspass toUniformTuckerTensorTrain.t3svd(). The weights carry the t3svd result’s masks, so they pair with that result – which isxitself only whenxalready has minimal ranks and tight padding. Otherwise weight the returned train, not the original:xs, _, _ = x.t3svd(); W = UT3Weights.from_ut3svd(x); absorb_weights(xs, W)- Parameters:
- Return type: