tensorly.decomposition.power_iteration

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

A single Robust Tensor Power Iteration

Parameters
tensortl.tensor

input tensor to decompose

n_repeatint, default is 10

number of initializations to be tried

n_iterationint, default is 10

number of power iterations

verbosebool

level of verbosity

Returns
(eigenval, best_factor, deflated)
eigenvalfloat

the obtained eigenvalue

best_factorstl.tensor list

the best estimated eigenvector, for each mode of the input tensor

deflatedtl.tensor of same shape as tensor

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