How can I compute the performance of this algorithm. I tried this simple example : `
af = AffinityPropagation().fit(X)
cluster_centers_indices = af.cluster_centers_indices_
labels = af.labels_
n_clusters_ = len(cluster_centers_indices)
print("Homogeneity: %0.3f" % homogeneity_score(X, labels))
print("Completeness: %0.3f" % metrics.completeness_score(X, labels))`
But i am getting the following error: ValueError: labels_true must be 1D: shape is (56, 52) Please help!