How do I handle class imbalance?
First, choose metrics that are not fooled by it. Then consider resampling, class weights, or threshold adjustment. Report what you did and show the effect. Resampling applied before the split is itself a leakage error, so the order matters.
This comes up on Machine Learning Coursework, where it is answered in the context of the work itself.
Not what you asked?
Ask us the actual question
Send the draft, the rubric or the score report with it. You get a real answer and a price before you commit to anything.