Skip to content

use n_clusters instead of n_partitions to locate the partition index #3

@cinqs

Description

@cinqs

Hello, Thank you for creating this repo.

When I used this repo, I found that this line below should be:

partition_index = int(np.floor(index/n_clusters))

because the indexes of the clusters are continuous in a single partition, and you should get the partition_index by cluster_index / n_cluster_in_one_partition

Thanks. and should I post a merge-request?

partition_index = int(np.floor(index/n_partitions))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions