A few months ago I realised you have to use Cython to calc pairwise dists for big data in Python, so I wrote my own:https://github.com/oliviaguest/pdist …
-
Show this thread
-
Replying to @o_guest
How does this compare to scipy.spatial.distance.pdist?
1 reply 0 retweets 1 like -
Replying to @nicholashcain
It's ridiculously faster. There's a file called compare.py — try it out. Be careful though.
1 reply 0 retweets 0 likes -
Replying to @o_guest @nicholashcain
Big values of N my Cython copes, but be careful read the comments before running a comparison if you change the N.
1 reply 0 retweets 0 likes
Replying to @o_guest @nicholashcain
I'm not sure what's the best way to bench mark this other than what I put in compare.py — @usethespacebar maybe knows?
6:21 AM - 15 Oct 2017
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.