Skip to content

TfidfTransformer does not support large sparse matrices on 32bit platforms #20923

Open

Description

@thomasjpfan

TfidTransformer does not support large sparse matrices (indices as int64) because _document_frequency uses np.bincount. np.bincount works on arrays with dtype NPY_INTP which is int32 on 32bit platforms.

REF: #20919

Activity

  1. added
    Moderate
    on Dec 10, 2021
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

    Moderatemodule:feature_extraction

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions