for i in clusters1_indices:
cluster1.add(i, features)
cluster2 = clusters.add_cluster()
for i in clusters2_indices:
cluster2.add(i, features)
cluster3 = clusters.add_cluster()
After Change
clusters3_indices = [15]
// Build a test ClusterMapCentroid
centroid = np.zeros_like(features)
cluster1 = ClusterCentroid(centroid.copy())
for i in clusters1_indices:
cluster1.assign(i, features)
cluster2 = ClusterCentroid(centroid.copy())
for i in clusters2_indices:
cluster2.assign(i, features)
cluster3 = ClusterCentroid(centroid.copy())