What is required in Affinity Propagation I am hoping to use affinity propagation to cluster my data using sklearn. But I came across a question whether to use a distance matrix or similarity matrix in the fit method.

Please let me know what is suitable to use?
According to sklearn.cluster.AP (in case in AP chosen affinity = "precomputed") the method "fit" requires X  where X is matrix of similarities / affinities, that is, if distance matrix is estimated, use as:

X $ = matrix\ of\ similarities = -distance\ matrix$.