Machine Learning, Clustering, Affinity Propagation, Python, Unsupervised Learning.
experimentation. For many datasets, setting the preference to the median (or sometimes the mean) of the pairwise similarities (especially when using Euclidean distances) can be a good starting point. From there, one can adjust the value based on the desired number of clusters or based on the