Computational Thinking, Python, Linear Algebra, Linear Regression, Jupyter Notebook.
lapack_driver="gelsd") 290 µs ± 9.24 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each) %timeit coef, _,_,_ = linalg.lstsq(trn_int, y_trn, lapack_driver="gelsy") 140 µs ± 91.7 ns per loop (mean ± std. dev. of 7 runs, 10000 loops each) %timeit coef, _,_,_ = linalg.lstsq(trn_int, y_trn,