Computational Thinking, Linear Algebra, Linear Regression, Python, Jupyter Notebook.
42.836164292252306) %timeit vec_poly(trn, trn_feat) 7.33 µs ± 19.8 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each) Recall, this was the time from the scikit learn implementation PolynomialFeatures, which was created by experts: %timeit poly.fit_transform(trn) 635 µs ± 9.25 µs per loop