Machine Learning, Clustering, Affinity Propagation, Python, Unsupervised Learning.
AffinityPropagation(preference=-50).fit(X) cluster_centers_indices = af.cluster_centers_indices_ labels = af.labels_ len(cluster_centers_indices), cluster_centers_indices # (3, array([ 55, 97, 153])) plt.figure(figsize=(10, 6)) colors = ['r', 'g', 'b'] for k, col in