Computes the paired cosine distances between X and Y.
Read more in the User Guide.
- Xarray-like of shape (n_samples, n_features)
- Yarray-like of shape (n_samples, n_features)
- distancesndarray of shape (n_samples,)
The cosine distance is equivalent to the half the squared euclidean distance if each sample is normalized to unit norm.