Tools for regression models# Building design matrices with ModelSpec Interactions Ordinal variables Structure of a ModelSpec Feature objects Predicting at new points Using np.ndarray Caveats using np.ndarray Model selection using ModelSpec Forward Selection ANOVA using ModelSpec Grouping variables ModelSpec, ColumnTransformer, patsy and formulaic At a glance Terms are Python objects The same in patsy and formulaic Working inside scikit-learn Tuning the parameters of terms Compared with scikit-learn’s ColumnTransformer Sparse model matrices Other dataframes Model structure Defaults that differ Where the others go further