Skip to content

X[labels == cluster_id, :] implicitly expect X to be numpy array #670

@dmitrysarov

Description

@dmitrysarov

Probably type check should be performed.
In my case X was list and i received

subset_X = X[labels == cluster_id, :]

TypeError: list indices must be integers or slices, not tuple

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