sklearn.metrics.pairwise.paired_euclidean_distances

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

Compute the paired euclidean distances between X and Y.

Read more in the User Guide.

Parameters:
Xarray-like of shape (n_samples, n_features)

Input array/matrix X.

Yarray-like of shape (n_samples, n_features)

Input array/matrix Y.

Returns:
distancesndarray of shape (n_samples,)

Output array/matrix containing the calculated paired euclidean distances.