Decompose-CNN icon indicating copy to clipboard operation
Decompose-CNN copied to clipboard

parafac function error

Open yfji opened this issue 4 years ago • 1 comments

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

yfji avatar Jan 20 '20 09:01 yfji

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,

loki-veera avatar Nov 19 '20 18:11 loki-veera