Skip to content

Kmeans hangs sometimes #4

Description

@vikramc1

When using the Kmeans function, there are times when the program just hangs. Cannot reproduce deterministically because it only happens sometimes. but the following code hangs sometimes and requires a restart of the kernel (running in jupyter notebook):

def get_cluster_labels(Z,k):
    cluster_labels = []
    for i in range(Z.shape[0]):
        data = np.squeeze(Z[i,:,:]).reshape(Z.shape[1],Z.shape[2])
        kmeans = Kmeans(data,k)
        cluster_labels.append(kmeans.get_clusters())
    return cluster_labels

Activity

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

Metadata

Metadata

Assignees

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