tensorly.decomposition.symmetric_power_iteration

symmetric_power_iteration(tensor, n_repeat=10, n_iteration=10, verbose=False)[source]

A single Robust Symmetric Tensor Power Iteration

Parameters:
tensortl.tensor

input tensor to decompose, must be symmetric of shape (size, )*order

n_repeatint, default is 10

number of initializations to be tried

n_iterationsint, default is 10

number of power iterations

verbosebool

level of verbosity

Returns:
(eigenval, best_factor, deflated)
eigenvalfloat

the obtained eigenvalue

best_factor: tl.tensor

the best estimated eigenvector

deflatedtl.tensor of same shape as tensor

the deflated tensor (i.e. without the estimated component)