scikit-tensor icon indicating copy to clipboard operation
scikit-tensor copied to clipboard

Sparse tensor with Tucker

Open simo1000k opened this issue 6 years ago • 0 comments

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.

simo1000k avatar Jun 27 '19 12:06 simo1000k