Loading topic
fit and predict workflow, and with the mean, variance and distributions from basic statistics.3 min readfit and predict workflow. The first step in feature engineering is to classify each column. The type tells you which treatment fits and which treatments wo3 min readfit and transform workflow, train and test splits, and basic statistics such as mean and variance. Every later chapter on imputing, scaling, encoding and selecting features depends on the rule given here.2 min readfit/transform workflow, and why a model is evaluated on data it did not train on. It covers how to find missing values, fill them in, and flag them, all without leaking information from the test set.2 min readfit and transform workflow, and what mean and variance are. It also assumes you know why a model is fitted on training data only.2 min readfit and transform workflow, and what a distribution and its mean and median are. It covers two ways to reshape a numeric column: transforming it to reduce skew, and binning it into ranges.2 min readfit and transform workflow, and the difference between training and test data. It covers how to turn category columns into numbers a model can use, and which encoder fits which situation.2 min readfit/transform workflow runs, and why transformations must be fitted on training data only. A raw timestamp is rarely useful to a model. Its parts often are.3 min readPipeline, and that you know why scaling and skew-reducing transforms matter. An interaction or polynomial feature is a new column computed from existing numeric columns. It lets a model that is linear in its inputs capture curved or combined effect2 min readPipeline and ColumnTransformer, and that you understand why transformers must be fitted on training data only. Text is the one feature type that needs a conversion step before any model can use it. A model needs numbers, so we turn each d3 min readfit and predict workflow, and why data leakage matters. Earlier chapters covered imputation, scaling and encoding one step at a time. Here you combine them into one object that you can fit, score and ship.2 min readfit and predict workflow, the idea of a train/test split, and the pipeline from the previous chapter. The question here is how to tell whether a new feature improves a model or only seems to.2 min readPipeline with a ColumnTransformer and run cross_val_score, as covered in earlier chapters. It also assumes you know why fitting any step on validation data causes leakage.2 min readPipeline, and read a cross-validation score. Principal component analysis (PCA) replaces many correlated columns with fewer new columns that keep most of the variation in the data.2 min readPipeline with a ColumnTransformer, and that you know why transformations must be fitted only on training data. Here the question is what happens after training, when the model runs on live data.2 min read