Computational Thinking, Linear Algebra, Linear Regression, Python, Jupyter Notebook.
proc_numpy(x,y), proc_numba(x,y,z), atol=1e-4 ) True %timeit proc_numba(x,y,z) 6.4 µs ± 17.6 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each) Now we will use Numba’s vectorize decorator. Numba's compiler optimizes this in a smarter way than what is possible with plain Python and Numpy.