def dynamic_partition(X, partitions, n_clusters):
    'Partitions the data into the number of cluster bins'
    cluster_bin = torch.chunk(X, n_clusters)
    return cluster_bin
Partitions the data into the number of cluster bins
def dynamic_partition(X, partitions, n_clusters):
    
    cluster_bin = torch.chunk(X, n_clusters)
    return cluster_bin