One-vs-Rest Multiclass Classification
One-vs-rest reduces a problem with several classes to one binary problem per class: each model separates its class from all the others, and a row is assigned to the class whose model gives the highest score.
일대다 방식은 범주가 여럿인 문제를 범주마다 하나의 이진 문제로 바꿉니다. 각 모형은 자기 범주를 나머지 모두와 구분하고, 한 행은 가장 높은 점수를 준 모형의 범주로 배정됩니다.
How well does a set of simple binary classifiers, one per class, separate my classes, and does it match a native multiclass model?
범주마다 하나씩 만든 단순한 이진 분류기들이 범주를 얼마나 잘 구분하는지, 그리고 본래의 다범주 모형과 비슷한지 알고 싶습니다.
The method fits one binary logistic regression, decision tree or linear SVM per class, predicts by the highest binary score and normalises the binary probabilities to sum to one. Cross-validated accuracy, macro F1 and log loss are compared with multinomial logistic regression and one-vs-one voting, and each class's binary model is summarised by its out-of-fold AUC.
When to use One-vs-Rest Multiclass Classification
- Your preferred classifier handles only two classes.
- You want to see which classes are easy or hard to separate from the rest.
- You want to compare reduction strategies for a multiclass problem.
When to use something else
- You want coefficients of a single multiclass probability model: use Multinomial Logistic Regression
- Rows can belong to several classes at once: use Multi-Label Classification (Binary Relevance and Classifier Chains)
- You only need ROC curves per class for existing scores: use Multiclass ROC Analysis (One-vs-Rest, Hand-Till)
Assumptions and requirements
- Three or more classes
- Binary scores are on comparable scales across classes
- Independent rows
What the analysis reports
- Per-class rows, out-of-fold binary AUC, recall and precision
- Cross-validated accuracy, macro F1 and log loss for one-vs-rest, multinomial and one-vs-one
- Coefficients of each binary logistic model
How to report it
One-vs-rest logistic classification of [value] classes reached a cross-validated accuracy of [value] against [value] for multinomial logistic regression.
Related methods
- Multinomial Logistic Regression
- Multiclass ROC Analysis (One-vs-Rest, Hand-Till)
- Multi-Label Classification (Binary Relevance and Classifier Chains)
- Support Vector Machine (SVM and SVR)
How this method is validated
이 방법의 검증 근거
- Independent computation. 1 reference test compares the results with scikit-learn.
독립 계산. scikit-learn 대조 참조 시험 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 One-vs-Rest Multiclass Classification on Quorant
- Data you need
- a table (CSV or Excel) with an outcome variable and predictor (feature) columns
- Price
- 250 credits for one analysis up to 10,000 rows (complexity level 2); larger or wider data costs more. Optional methodologist review: 1200 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.