Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sparse not working #67

Open
olegranmo opened this issue Feb 8, 2024 · 1 comment
Open

Sparse not working #67

olegranmo opened this issue Feb 8, 2024 · 1 comment

Comments

@olegranmo
Copy link
Member

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]

@perara
Copy link
Member

perara commented Feb 8, 2024

Can you test this fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants