Imbalanced Classification (Resampling and Class Weights)
Imbalanced classification compares an unadjusted classifier with class weighting, random undersampling, SMOTE or ADASYN applied inside each training fold, evaluating all of them on untouched validation folds.
불균형 분류는 조정하지 않은 분류기와 범주 가중치·무작위 과소추출·SMOTE·ADASYN 을 학습 겹 안에서만 적용한 분류기를 원래 분포의 검증 겹에서 비교하는 방법입니다.
Only 5% of my cases are positive; should I use SMOTE or class weights, and does it actually help?
양성이 5%밖에 안 되는데, SMOTE 와 범주 가중치 중 무엇을 써야 하고 실제로 도움이 되나요?
Resampling or reweighting is applied only to the training part of each cross-validation fold, so validation folds keep the real class balance and the comparison with the unadjusted model is fair. Ranking metrics such as PR-AUC usually change little, while recall and balanced accuracy at a fixed threshold often improve at the cost of precision and calibration, which the Brier score shows.
When to use Imbalanced Classification (Resampling and Class Weights)
- A binary outcome has a rare minority class.
- You need to justify a choice between SMOTE, undersampling and class weights with cross-validated evidence.
- You care about recall or balanced accuracy at a probability threshold.
When to use something else
- You need well-calibrated probabilities; keep the unadjusted model and move the decision threshold instead.
- The outcome has more than two classes; use a multiclass model with class weights.
Assumptions and requirements
- Observations are independent so random stratified folds are valid.
- Features are numeric after dummy coding; SMOTE interpolates in standardised feature space.
- The minority class has at least a handful of cases per fold.
What the analysis reports
- Cross-validated PR-AUC, ROC-AUC, recall, precision, F1, balanced accuracy and Brier score per strategy
- Fold standard deviations for each metric
- Imbalance ratio and minority class
- Bar chart of PR-AUC by strategy
How to report it
With [value]-fold stratified cross-validation, [value] gave PR-AUC = [value], recall = [value] and balanced accuracy = [value], compared with [value], [value] and [value] for the unadjusted model.
Common variants
자주 쓰는 설정
The same analysis with settings already chosen. Each runs Imbalanced Classification (Resampling and Class Weights) itself, at the same price.
- Imbalanced Classification with SMOTE Oversampling — strategy set to “smote”
Related methods
- Logistic Regression
- Random Forest
- Classification Performance Report
How this method is validated
이 방법의 검증 근거
- Independent computation. 1 reference test compares the results with reference values computed independently in the test suite.
독립 계산. 시험에서 따로 계산한 참조값 대조 참조 시험 1건 통과.
Tolerances are relative differences (absolute differences for values near zero). R comparisons and reference tests are re-run before each release of the analysis engine.
허용오차는 상대 차이입니다(0 근처 값은 절대 차이). R 대조와 참조 시험은 분석 엔진을 배포할 때마다 다시 돌립니다.
Run Imbalanced Classification (Resampling and Class Weights) on Quorant
- Data you need
- a table (CSV or Excel) with an outcome variable and predictor (feature) columns
- Price
- 400 credits for one analysis up to 10,000 rows (complexity level 3); larger or wider data costs more. Optional methodologist review: 1800 credits.
- Checking
- Compared with independent computations
- Before you pay
- A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.