paired_cosine_distances
- sklearn.metrics.pairwise.paired_cosine_distances(X, Y)
Compute the paired cosine distances between X and Y.
Distances are calculated between (X[0], Y[0]), (X[1], Y[1]), …, etc.
Read more in the User Guide.
- Parameters:
- X : {array-like, sparse matrix} of shape (n_samples, n_features)
An array where each row is a sample and each column is a feature.