sklearn.metrics.pairwise.paired_distances(X, Y, metric=’euclidean’, **kwds)
[source]
Computes the paired distances between X and Y.
Computes the distances between (X[0], Y[0]), (X[1], Y[1]), etc…
Read more in the User Guide.
Parameters: |
|
---|---|
Returns: |
|
See also
pairwise_distances
>>> from sklearn.metrics.pairwise import paired_distances >>> X = [[0, 1], [1, 1]] >>> Y = [[0, 1], [2, 1]] >>> paired_distances(X, Y) array([0., 1.])
© 2007–2018 The scikit-learn developers
Licensed under the 3-clause BSD License.
http://scikit-learn.org/stable/modules/generated/sklearn.metrics.pairwise.paired_distances.html