02Chapter 2: Stratified train/test splits and cross-validationAssume you know binary classification, train/test splits, cross-validation, and scikit-learn pipelines. This chapter uses a rare positive class, such as fraud or a failed product.1 min read
03Chapter 3: Resampling only the training folds: pipelines and leakageAssume you know binary classification, train/test splits, cross-validation, scikit-learn estimators, and pipelines. The central rule is simple: resampling may change training data, but evaluation data must keep its natural class ratio.1 min read