.. _example_cluster_plot_affinity_propagation.py: ================================================= Demo of affinity propagation clustering algorithm ================================================= Reference: Brendan J. Frey and Delbert Dueck, "Clustering by Passing Messages Between Data Points", Science Feb. 2007 .. image:: images/plot_affinity_propagation_1.png :align: center **Script output**:: Estimated number of clusters: 3 Homogeneity: 0.885 Completeness: 0.885 V-measure: 0.885 Adjusted Rand Index: 0.922 Adjusted Mutual Information: 0.884 Silhouette Coefficient: 0.774 **Python source code:** :download:`plot_affinity_propagation.py ` .. literalinclude:: plot_affinity_propagation.py :lines: 11-