Classification: Class Imbalance

Photo by Tingey Injury Law Firm on Unsplash

For this blog, I will demonstrate three techniques to handle class imbalance using NYS PUMS(Public Use Microdata Sample) Census data. (You can find the dataset here.) Training classification models with imbalanced classes can lead to the model biasedly predicting the majority class.

  • Undersampling
  • Oversampling