You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[MRG + 1] fix bug with negative values in cosine_distances (scikit-learn#7732)
* fix bug with negative values in cosine_distances
clip distances to [0, 2]
set distances between vectors and themselves to 0
* add test
* add test on big random matrix
* use np.diag_indices_from instead of slicing
0 commit comments