How to get the clusters from Affinity propagation algorithm?

I want the data points after using AP clustering as a 3d nparray. First index to access the clusters, second and third index to access the clustered data. I am using the sklearn library function. af = AffinityPropagation().fit(X) >Solution : You can access the cluster labels for each data point by calling the labels_ attribute… Read More How to get the clusters from Affinity propagation algorithm?