Skip to content

K-means: work on sparse #2913

@mrka124

Description

@mrka124

if len(X) <= 5000:

len(X) should be X.shape[0] beacause it raise error sparse matrix length is ambiguous; use getnnz() or shape[0] when use tf-idf sparse matrix with Kmeans

Error flow
error

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA bug confirmed by the core team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions