Loading topic
fit and predict. It covers how to decide what kind of feature each column is, and how that decision determines which transformations make sense. Later chapters treat each transform6 min readfit, transform, predict), the train/validation/test split, and cross-validation at the level of calling cross_val_score. Later chapters on scaling, encoding, target encoding, selection and pipelines all rely on the rule explained here.5 min readfit and transform workflow, and the leakage rule from the previous chapter: every statistic is learned from training data only.4 min readfit/transform workflow. It also assumes you understand mean, variance, and the idea of a training and test split. You have already seen why every fitted step must learn only from training data. Here we apply that rule to scaling.5 min readfit and transform workflow, and what mean, variance and a distribution are. It also assumes you have read the earlier chapters on data leakage and scaling. Here you will learn how to reshape skewed numeric columns and when to turn a nu5 min readfit/transform workflow, basic pandas, and the data leakage rule: every transformation is fitted o5 min readfit and transform workflow, and the leakage rule from the earlier chapter: every learned quantity is fitted on training data only. Date-time columns need little fitting. Most of the work is deciding which parts of a timestamp matter, a5 min readPipeline and ColumnTransformer fit together, and why scaling matters for linear models. It also assumes you have read the chapters on data leakage and scaling.5 min readfit/transform workflow. It covers target encoding for categorical columns with many distinct values, how it leaks the label, and how to use it5 min readfit, transform and predict workflow. It also assumes you have met imputation, scaling and one-hot encoding from earlier chapters. Here you will combine those pieces into one object. That object can be trained, cross-validated, saved and served wit6 min readPipeline with ColumnTransformer (previous chapter), you know what a train/test split is, and you understand data leakage as described earlier. Here you will learn how to decide whether a new feature or preprocessing step improves a model, and how6 min readPipeline with a ColumnTransformer, run cross_val_score, and explain data leakage. It also assumes you know basic model terms such as coefficients and feature importances.4 min readPipeline, why scaling matters, and what variance and covariance mean. It covers principal component analysis (PCA), the most common way to reduce the number of numeric columns in a feature matrix.5 min readPipeline with a ColumnTransformer, and you understand data leakage and cross-validation from earlier chapters. It covers the last step of the workflow: making sure the features your model sees in production match the features it saw in tr5 min read