What are the tradeoffs between cost-sensitive reweighting and data resampling?

Quick Overview

Compare cost-sensitive class weighting with undersampling, oversampling and SMOTE for imbalanced classification. Tests whether you understand the information loss, synthetic noise, training cost, leakage risk and probability recalibration that each approach brings.

What are the tradeoffs between cost-sensitive reweighting and data resampling?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

Both are common ways to make a classifier pay more attention to a rare class. What are the tradeoffs between cost-sensitive reweighting and data resampling? ```hint What each one changes One method changes the loss and the other changes the training set. For each, ask what information is lost, what is invented, and what it costs to train. ``` ```hint After training Think about what a model trained on a rebalanced class ratio believes about the base rate, and what that does to its predicted probabilities. ``` ### What a Strong Answer Covers - How reweighting and resampling each raise the influence of minority errors, and how weights relate to duplicating rows - What undersampling throws away and what oversampling or SMOTE adds, including overfitting and unrealistic synthetic points - Practical costs: whether the learner accepts weights, training time, and stability when weights are large - The prior shift both methods introduce, and how to recalibrate the scores or tune the threshold - Leakage from resampling before the split, and the baseline of training on the real distribution with a tuned threshold ### Follow-up Questions - A model was trained after keeping only a fraction of the negatives. How do you convert its scores back to probabilities on the real distribution? - Why can SMOTE hurt on high-dimensional or mostly categorical data, and what would you try instead? - How do you set up cross-validation so that resampling does not leak into the validation folds? - When would you set class weights from business costs instead of inverse class frequency?

Overview: Compare cost-sensitive class weighting with undersampling, oversampling and SMOTE for imbalanced classification. Tests whether you understand the information loss, synthetic noise, training cost, leakage risk and probability recalibration that each approach brings.

Nov 24, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

Both are common ways to make a classifier pay more attention to a rare class. What are the tradeoffs between cost-sensitive reweighting and data resampling?

What a Strong Answer Covers Guidance

  • How reweighting and resampling each raise the influence of minority errors, and how weights relate to duplicating rows
  • What undersampling throws away and what oversampling or SMOTE adds, including overfitting and unrealistic synthetic points
  • Practical costs: whether the learner accepts weights, training time, and stability when weights are large
  • The prior shift both methods introduce, and how to recalibrate the scores or tune the threshold
  • Leakage from resampling before the split, and the baseline of training on the real distribution with a tuned threshold

Follow-up Questions Guidance

  • A model was trained after keeping only a fraction of the negatives. How do you convert its scores back to probabilities on the real distribution?
  • Why can SMOTE hurt on high-dimensional or mostly categorical data, and what would you try instead?
  • How do you set up cross-validation so that resampling does not leak into the validation folds?
  • When would you set class weights from business costs instead of inverse class frequency?