-
Hi I am following the same example in: http://tensorly.org/stable/user_guide/tensor_decomposition.html
I tried another example, and it is reconstructing one value only:
Also I tried not to compress and passed None to ranks, and this is what I get:
So, your example gives an error, and another simple example does not reconstruct the tensor, or without rank give another error. Any help please to be able to continue will be appreciated, Kind Regards, Manal |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Hi @mhelal , |
Beta Was this translation helpful? Give feedback.
-
Thank you and sorry for replying late, The last two problems are both solved by converting:
such that the error "ValueError: too many values to unpack (expected 2)" is solved by sending 2 values to unpack in the "tucker_tensor" argument The problem of compressing and using a smaller rank than the original tensor is as follows:
There are discussions online from other libraries about do not use ARPACK so you can use that instead of QSQP as a workaround, So I am not sure yet how to compress while decomposing, and then reconstruct from the core and factors and check the errors. Thank you again, Manal |
Beta Was this translation helpful? Give feedback.
Thank you and sorry for replying late,
The last two problems are both solved by converting:
reconstructed = tl.tucker_to_tensor(core, factors)
to
reconstructed = tl.tucker_to_tensor((core, factors))
such that the error "ValueError: too many values to unpack (expected 2)" is solved by sending 2 values to unpack in the "tucker_tensor" argument
The problem of compressing and using a smaller rank than the original tensor is as follows: