For six classes, how many binary pairwise classifiers does SVC train?
Classic MLLevel: IntermediatePairwise classifier count
For six classes, how many binary pairwise classifiers does SVC train?
Hints
- Count unordered pairs, not ordered pairs.
- Training model count is not necessarily output width.
Answer
There are 6*5/2=15 unordered class pairs. Each pair uses data from two classes; the number of output score columns can still depend on decision_function_shape.
Source and licence: scikit-learn 1.7.2 — svm · BSD-3-Clause · answer: Quantoros editorial