<div dir="ltr"><div><div><div>Hi,<br><br></div>In the silhouette example (<a href="http://scikit-learn.org/stable/auto_examples/cluster/plot_kmeans_silhouette_analysis.html#sphx-glr-auto-examples-cluster-plot-kmeans-silhouette-analysis-py">http://scikit-learn.org/stable/auto_examples/cluster/plot_kmeans_silhouette_analysis.html#sphx-glr-auto-examples-cluster-plot-kmeans-silhouette-analysis-py</a>), the silhouette values of each sample is computed twice: once with <i>silhouette_score </i>and once with <i>silhouette_samples.</i> The call to <i>silhouette_score</i> can be easily avoided by computing the average of the result of<i> silhouette_samples</i>.<br><br></div><div>Do you think we should remove the call to <i>silhouette_score</i> to improve the performance ? Or it is better to keep the two functions to show how to use them ?<br><br></div><div>AnaĆ«l Bonneton<br></div></div><i></i></div>