random_parafac2(shapes, rank, full=False, random_state=None, normalise_factors=True, **context)¶
Generate a random PARAFAC2 tensor
A tuple where each element represents the shape of a matrix represented by the PARAFAC2 model. The second element in each shape-tuple must be constant.
- rankint or int list
rank of the Parafac2 decomposition
- fullbool, optional, default is False
if True, a full tensor is returned otherwise, the decomposed tensor is returned