I need to run the tucker with a sparse tensor.
I got this error : TypeError: 'numpy.int32' object is not iterable
When I run this code:
from sktensor import tucker_hooi
from sktensor import sptensor
S = sptensor(([0,1,2], [3,2,0], [2,2,2]), [1,1,1],
shape=(10, 20, 5), dtype=np.float)
tucker_hooi(X=S, rank=[5, 5, 4], init='nvecs')
Can you help me, please?
Thanks.
I need to run the tucker with a sparse tensor.
I got this error : TypeError: 'numpy.int32' object is not iterable
When I run this code:
from sktensor import tucker_hooi
from sktensor import sptensor
S = sptensor(([0,1,2], [3,2,0], [2,2,2]), [1,1,1],
shape=(10, 20, 5), dtype=np.float)
tucker_hooi(X=S, rank=[5, 5, 4], init='nvecs')
Can you help me, please?
Thanks.