What is the difference between class_weight='balanced' and class_weight='balanced_subsample' in a Random Forest?
Role: Machine Learning Engineer
Category: Machine Learning
Difficulty: easy
Interview Round: Other
Overview: Compare the balanced and balanced_subsample class weight options of a scikit-learn Random Forest. It tests how inverse-frequency class weights are computed, how bootstrap sampling changes the class balance seen by each tree, and when the choice matters for imbalanced classification.