Computational Thinking, Linear Algebra, Linear Regression, Python, Jupyter Notebook.
this is! Numba polynomial features @jit(nopython=True) def vec_poly(x, res): m,n=x.shape feat_idx=0 for i in range(n): v1=x[:,i] for k in range(m): res[k,feat_idx] = v1[k] feat_idx+=1 for j in range(i,n): for k in range(m): res[k,feat_idx] = v1[k]*x[k,j] feat_idx+=1 Row-Major vs Column-Major