Computational Thinking, Linear Algebra, Linear Regression, Python, Jupyter Notebook.
1000)) %timeit pairwise_numba(X, D) 100 loops, best of 3: 15.5 ms per loop This is a three order-of-magnitude speedup, simply by adding a numba decorator! Cython Version For completeness, let’s do the same thing in cython. Cython takes a bit more than just some decorators: there are also type