-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
[MRG] Fix repeated calls of check_pairwise and type casting in pairwise_distances_argmin_min #3811
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
[MRG] Fix repeated calls of check_pairwise and type casting in pairwise_distances_argmin_min #3811
Conversation
The time in |
045d928
to
0357479
Compare
do you change any existing behavior? |
Give me five minutes, I shall make changes to make it backward compatible. |
560f7f6
to
864154e
Compare
I squashed everything to one commit. I think it should be backward compatible now. @agramfort can you have a look? I'll just for speed regressions once more. |
This PR cuts around (1/3 rd of the time) that is from 320s to 220s. @GaelVaroquaux might also be interested. |
864154e
to
b500e3e
Compare
@agramfort done |
[MRG] Fix repeated calls of check_pairwise and type casting in pairwise_distances_argmin_min
thanks @MechCoder ! |
Fixes #3807
I am able to bring the time down from 313s as seen in this gist (https://gist.github.com/MechCoder/8342cec755d167cc7cad) to 249s as seen in this gist (https://gist.github.com/MechCoder/6c29efb33917c5d97857)