tmu icon indicating copy to clipboard operation
tmu copied to clipboard

Sparse not working

Open olegranmo opened this issue 4 months ago • 1 comments

File "/data/tmp/tmu/./examples/classification/IMDbSparseAbsorbingTextCategorizationDemo.py", line 92, in tm.fit(X_train, Y_train) File "/data/tmp/tmu/tmu/models/classification/vanilla_classifier.py", line 374, in fit assert len(X) == len(Y), "X and Y must have the same length" File "/usr/local/lib/python3.10/dist-packages/scipy/sparse/_base.py", line 395, in len raise TypeError("sparse array length is ambiguous; use getnnz()" TypeError: sparse array length is ambiguous; use getnnz() or shape[0]

olegranmo avatar Feb 08 '24 10:02 olegranmo