0
0
ML Pythonml~5 mins

Imbalanced class handling (SMOTE, class weights) in ML Python - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is an imbalanced class problem in machine learning?
It happens when one class has many more examples than another, making the model biased toward the bigger class.
Click to reveal answer
beginner
What does SMOTE stand for and what does it do?
SMOTE means Synthetic Minority Over-sampling Technique. It creates new synthetic examples for the smaller class to balance the data.
Click to reveal answer
beginner
How do class weights help with imbalanced classes?
Class weights tell the model to pay more attention to the smaller class by making mistakes on it costlier during training.
Click to reveal answer
intermediate
When should you prefer SMOTE over class weights?
Use SMOTE when you want to increase data size by adding synthetic samples. Use class weights when you want to keep data as is but adjust training focus.
Click to reveal answer
intermediate
What is a potential risk of using SMOTE?
SMOTE can create noisy or unrealistic samples if the minority class is very small or complex, which may confuse the model.
Click to reveal answer
What problem does SMOTE solve?
AToo few examples in the minority class
BToo many features in the dataset
COverfitting on training data
DMissing values in data
How do class weights affect model training?
AThey increase the learning rate
BThey balance the dataset by adding samples
CThey reduce the number of features
DThey make errors on minority class more costly
Which method adds new data points to balance classes?
ASMOTE
BClass weights
CFeature scaling
DCross-validation
What is a downside of using SMOTE?
AIt reduces model accuracy
BIt removes minority class samples
CIt can create unrealistic samples
DIt ignores the majority class
When might class weights be preferred over SMOTE?
AWhen you want to add synthetic samples
BWhen you want to keep original data unchanged
CWhen dataset is perfectly balanced
DWhen you want to reduce training time
Explain how SMOTE works and why it helps with imbalanced classes.
Think about how adding new examples can help the model see more minority class data.
You got /4 concepts.
    Describe how class weights influence model training on imbalanced data.
    Consider how the model treats mistakes differently for each class.
    You got /4 concepts.