Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parafac function error #3

Open
yfji opened this issue Jan 20, 2020 · 1 comment
Open

parafac function error #3

yfji opened this issue Jan 20, 2020 · 1 comment

Comments

@yfji
Copy link

yfji commented Jan 20, 2020

Hi. I test the CP decomposition and I met a mistake returned by parafac:
last, first, vertical, horizontal = parafac(W, rank=rank, init='random') ValueError: not enough values to unpack (expected 4, got 2)
I checked the returns of parafac, which should be a tensor. The version of tensorly is 0.4.5

@loki-veera
Copy link

This error is because in newer version of parafac it returns norms and factors, so change your statement to
last, first, vertical, horizontal = parafac(W, rank=rank, init='random')[1].Then this return four factors,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants