# Import statement
from hottbox.algorithms.decomposition import TTSVD
TTSVD
(verbose=False)[source]¶Tensor Train Decomposition.
Attributes
Name of the decomposition |
converged |
Methods
|
Copy of the Decomposition as a new object |
|
Performs TT-SVD on the tensor with respect to the specified rank |
plot |
decompose
(self, tensor, rank, keep_meta=0)[source]¶Performs TT-SVD on the tensor with respect to the specified rank
Multidimensional data to be decomposed
Desired tt-rank for the given tensor
Keep meta information about modes of the given tensor. 0 - the output will have default values for the meta data 1 - keep only mode names 2 - keep mode names and indices
Tensor train representation of the tensor
Notes
Reshaping of the data is performed with respect to the FORTRAN ordering. This makes it easy to compare results with the MATLAB implementation by Oseledets. This doesn’t really matter (apart from time it takes to compute), as long as we do exactly the opposite for the reconstruction
name
¶Name of the decomposition