Chapter 6
Class Balancing
A model that predicts 'pizza' every time can be 75% accurate and completely useless. This chapter covers why class imbalance breaks naive evaluation, and the practical toolkit — SMOTE, Tomek links, class weights — for building models that actually learn the minority class.