Transforms for flexible features# Polynomial features Compare to R Underlying model Raw polynomials Intercept Spline features Compare to R Underlying model Natural splines Intercept Derived features: using PCA on a subset of columns Helper function Direct comparison