T3Weights.from_t3svd#

classmethod t3toolbox.tucker_tensor_train.T3Weights.from_t3svd(x, **kwargs)#
def from_t3svd(cls, x: 'TuckerTensorTrain', **kwargs) -> 'T3Weights':

The singular values of x as a weight object – the canonical (unmodified) σ’s, so from_t3svd(x).reciprocal() is the inverse-σ (Grasedyck-Kramer) weighting. **kwargs pass to t3svd(); the weights are shape-consistent with the t3svd result (with x itself when x has minimal ranks, the usual case).

Parameters:

x (TuckerTensorTrain)

Return type:

T3Weights