Loading topic
train_test_split and estimators. You don't need any imbalance-specific knowledge. By the end, you will be able to explain why a model that has learned nothing can score about7 min readpredict and predict_proba, and split data into train and test sets. It builds on the previous chapter, where a model that always predicts the majority class reached high accuracy while finding none of the rare class. Here you wil6 min readpredict_proba scores. It also assumes you know the confusion matrix terms (true positive, false positive, precision, recall) from the previous chapter. Here you will learn to evaluate a model across all decision thresholds instea7 min readtrain_test_split and cross_val_score, and that you have used scikit-learn estimators and pipelines. It covers how to split imbalanced data so the rare class appears in every subset, and how to cross-validate without noisy scores.5 min readpredict_proba output, and use stratified cross-validation. It also assumes you have seen class weights, resampling, and threshold tuning from earlier chapters.7 min read