距离和相似度

sklearn.metrics.pairwise.cosine_similarity
http://scikit-learn.org/stable/modules/generated/sklearn.metrics.pairwise.cosine_similarity.html#sklearn.metrics.pairwise.cosine_similarity

sklearn.metrics.pairwise.pairwise_distances
https://scikit-learn.org/stable/modules/generated/sklearn.metrics.pairwise_distances.html#sklearn.metrics.pairwise_distances

sklearn.metrics.pairwise_distances_argmin
http://scikit-learn.org/stable/modules/generated/sklearn.metrics.pairwise_distances_argmin.html#sklearn.metrics.pairwise_distances_argmin

scipy.spatial.distance.cdist
https://docs.scipy.org/doc/scipy/reference/generated/scipy.spatial.distance.cdist.html#scipy.spatial.distance.cdist

scipy.spatial.distance.pdist
https://docs.scipy.org/doc/scipy/reference/generated/scipy.spatial.distance.pdist.html#scipy.spatial.distance.pdist

scipy.stats.pearsonr
https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.pearsonr.html

你可能感兴趣的:(距离和相似度)