Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't use unstable sorting in similarity measures #636

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

tornikeo
Copy link
Contributor

@tornikeo tornikeo commented May 3, 2024

Similar to #596 , ModifiedCosine and other classes also use non-stable version of np.argsort. I've encountered this issue once more while implementing CudaModifiedCosine.

In this PR, I've changed sorting kind to mergesort for other similarity measures too, since this issue is likely to pop up once I've added those too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant