StackedML
Practice
Labs
Questions
Models
Pricing
Sign in
Questions
/
Supervised Learning
/
Data Issues
/
Imbalanced data handling
← Previous
Next →
96.
Class Weights in Logistic Regression
medium
Class weights are used in logistic regression to handle imbalance. What do they do mechanically?
A
They resample the training data so the effective class distribution matches the specified weight ratio
B
They adjust the model's output probabilities after training to reflect the desired class distribution
C
They regularize the decision boundary toward the minority class by adding a class-weighted penalty term
D
They scale the loss contribution of each sample by its class weight, penalizing minority class errors more heavily
Sign in to verify your answer
← Back to Questions