cosine_distances
- sklearn.metrics.pairwise.cosine_distances(X, Y=None)
Compute cosine distance between samples in X and Y.
Cosine distance is defined as 1.0 minus the cosine similarity.
Read more in the User Guide.
- Parameters:
- X : {array-like, sparse matrix} of shape (n_samples_X, n_features)
Matrix .