# Import statement
from hottbox.algorithms.decomposition import HOOI
HOOI
(init='hosvd', max_iter=50, epsilon=0.01, tol=0.0001, random_state=None, process=(), verbose=False)[source]¶Higher Order Orthogonal Iteration Decomposition.
Type of factor matrix initialisation. Available options are hosvd.
Specifies the order of modes to be processed. The factor matrices for the missing modes will be set to identity. If empty, then all modes are processed in the consecutive ascending order. Note, initialisation of a factor matrix that corresponds to the mode at the first position is skipped.
Maximum number of iteration
Threshold for the relative error of approximation.
Threshold for convergence of factor matrices
If True, enable verbose output
Attributes
cost |
(list) A list of relative approximation errors at each iteration of the algorithms. |
Methods
|
Copy of the HOSVD algorithm as a new object |
|
Performs tucker decomposition via Higher Order Orthogonal Iteration (HOOI) |
plot |
converged
¶Checks convergence of the HOOI algorithm.
decompose
(self, tensor, rank, keep_meta=0)[source]¶Performs tucker decomposition via Higher Order Orthogonal Iteration (HOOI)
Multidimensional data to be decomposed
Desired multilinear 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
Tucker representation of the tensor
name
¶Name of the decomposition