This is documentation for an old release of Scikit-learn (version 0.20). Try the latest stable release (version 1.6) or development (unstable) versions.

sklearn.metrics.pairwise.paired_euclidean_distances

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

Computes the paired euclidean 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 (n_samples, )