Toggle Menu
Prev Up Next

scikit-learn 1.3.2
Other versions

Please cite us if you use the software.

# `sklearn.metrics.pairwise`.paired_euclidean_distances

sklearn.metrics.pairwise.paired_euclidean_distances(X, Y)

  Compute the paired euclidean distances between X and Y.

  Read more in the User Guide.

  Parameters:
    X{array-like, sparse matrix} of shape (n_samples, n_features)

      Input array/matrix X.

    Y{array-like, sparse matrix} of shape (n_samples, n_features)

      Input array/matrix Y.

  Returns:
    distances ndarray of shape (n_samples,)

      Output array/matrix containing the calculated paired euclidean distances.