Skip to content

Cython speedup on custom distclassipy metrics - #38

Open
sidchaini wants to merge 6 commits into
mainfrom
cython
Open

sidchaini wants to merge 6 commits into
mainfrom
cython

Conversation

@sidchaini

Copy link
Copy Markdown
Owner

Written non-SciPy functions in Cython to enable SciPy-like speedup in compute speed & performance.

@sidchaini

Copy link
Copy Markdown
Owner Author

Classifier speed-up

Distance Metric Old Time (s) Cython Time (s) Speedup
meehl 0.07970 0.00184 43.32x
divergence 0.05467 0.00183 29.87x
penroseshape 0.05428 0.00189 28.72x
hellinger 0.04485 0.00166 27.02x
clark 0.04836 0.00188 25.72x
add_chisq 0.03995 0.00168 23.78x
prob_chisq 0.03728 0.00167 22.32x
squared_chisq 0.03705 0.00169 21.92x
vicis_symmetric_chisq 0.04066 0.00207 19.64x
wave_hedges 0.04291 0.00230 18.66x
matusita 0.02933 0.00162 18.10x
vicis_wave_hedges 0.03735 0.00214 17.45x
taneja 0.06286 0.00377 16.67x
squaredchord 0.02692 0.00167 16.12x
tanimoto 0.02795 0.00176 15.88x
google 0.02754 0.00175 15.74x
acc 0.03339 0.00215 15.53x
sorensen 0.02224 0.00157 14.17x
czekanowski 0.02222 0.00157 14.15x
kulczynski 0.02338 0.00180 12.99x
soergel 0.02251 0.00177 12.72x
motyka 0.02059 0.00176 11.70x
jensenshannon_divergence 0.08277 0.00719 11.51x
ruzicka 0.02117 0.00188 11.26x
topsoe 0.07750 0.00711 10.90x
jeffreys 0.05003 0.00477 10.49x
kumarjohnson 0.06274 0.00617 10.17x
gower 0.01366 0.00149 9.17x
jensen_difference 0.07820 0.00865 9.04x
lorentzian 0.03221 0.00408 7.89x
jaccard 0.01239 0.00184 6.73x
chebyshev_min 0.01342 0.00210 6.39x
marylandbridge 0.01041 0.00171 6.09x
squared_euclidean 0.00844 0.00156 5.41x
dice 0.00177 0.00164 1.08x

Anomaly detector speedup

Distance Metric Old Time (s) Cython Time (s) Speedup
DistanceAnomaly 0.40381 0.01542 26.19x

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.

1 participant