Skip to content

Sparse not working #67

Description

@olegranmo

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]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions