sklearn.metrics.pairwise.paired_cosine_distances()

sklearn.metrics.pairwise.paired_cosine_distances

sklearn.metrics.pairwise.paired_cosine_distances(X, Y) [source]

Computes the paired cosine distances between X and Y

Read more in the User Guide.

Parameters:

X : array-like, shape (n_samples, n_features)

Y : array-like, shape (n_samples, n_features)

Returns:

distances : ndarray, shape (n_samples, )

Notes

The cosine distance is equivalent to the half the squared euclidean distance if each sample is normalized to unit norm

© 2007–2016 The scikit-learn developers
Licensed under the 3-clause BSD License.
http://scikit-learn.org/stable/modules/generated/sklearn.metrics.pairwise.paired_cosine_distances.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部