tensorly.decomposition.CP

class CP(rank, n_iter_max=100, tol=1e-08, init='svd', svd='numpy_svd', l2_reg=0, linesearch=False, fixed_modes=[], normalize_factors=False, orthogonalise=False, sparsity=None, mask=None, svd_mask_repeats=5, cvg_criterion='abs_rec_error', random_state=None, verbose=0)[source]
fit_transform(tensor)[source]

Decompose an input tensor

Parameters:
tensortensorly tensor

input tensor to decompose

Returns:
CPTensor

decomposed tensor