Closed akonstodata closed 1 month ago
For the first one, looks like it is an overflow error, you may want to check the range of values of your tensor and perhaps normalize its range before decomposing.
In the second case, it should be supported, see the doc. What version of TensorLy are you using (you can check with import tensorly; print(tensorly.__version__)
) ?
@JeanKossaifi, thanks for your reply. I had the 0.7.0 version of Tensorly. I installed the newest version (0.8.1) and it seems that both issues have been cleared up. For the first one, I was not able to get the normalize_factors
to be True without the overflow error for multiple different datasets in the older version. But it works on all the datasets I tested in the updated version. Thanks!
Closing since the problem is fixed in tl>=0.8.0
Summary
I would like to perform a non-negative CP tensor decomposition where I set the
normalize_factors
parameter to True, but am unable to do so as I receive errors in both thenon_negative_parafac
andnon_negative_parafac_hals
functions.Steps or Code to Reproduce
An example following the tutorial for non-negative CP decomposition.
Error output
The call to
non_negative_parafac
returns the following error:The call to
non_negative_parafac_hals
returns the following error:Versions