How do class weights change the impurity calculation at a node under class imbalance?
Role: Machine Learning Engineer
Category: Machine Learning
Difficulty: medium
Interview Round: Other
Overview: Asks how class weights change Gini impurity or entropy at a decision tree node when one class is rare. It tests whether you can compute weighted class proportions, follow how weights shift split selection and leaf predictions, and see what weighting does to predicted probabilities.