tensortools.ncp_hals(X, rank, random_state=None, init='rand', **options)¶Fits nonnegtaive CP Decomposition using the Hierarcial Alternating Least Squares (HALS) Method.
| Parameters: |
|
|---|---|
| Returns: | result – Object which holds the fitted results. It provides the factor matrices
in form of a KTensor, |
| Return type: | FitResult instance |
Notes
This implemenation is using the Hierarcial Alternating Least Squares Method.
References
Cichocki, Andrzej, and P. H. A. N. Anh-Huy. “Fast local algorithms for large scale nonnegative matrix and tensor factorizations.” IEICE transactions on fundamentals of electronics, communications and computer sciences 92.3: 708-721, 2009.
Examples