Multiclass classification predicts one categorical label from more than two possible classes. It extends binary classification beyond yes-or-no decisions, such as assigning a query-document pair to least, moderate, or high relevance. section 1.3 section 6.5.1
The task appears in several modeling settings:
- Predict a relevance class for each query-document pair in the LETOR data set. section 6.5.1
- Use an AdaBoost ensemble whose implementation supports more than two target classes. section 4.2.3
- Represent each class probability separately when combining predictions from multiple classifiers. section 3.1.2
AdaBoost on Iris
A scikit-learn example loads the Iris data, splits it into training and test sets, trains 20 shallow-tree AdaBoost learners with learning_rate=0.75 and algorithm='SAMME.R', and reports a test error of 0.07895. section 4.2.3
ensemble = AdaBoostClassifier(base_estimator=shallow_tree,
n_estimators=20,
learning_rate=0.75, algorithm='SAMME.R')
ensemble.fit(Xtrn, ytrn)
ypred = ensemble.predict(Xtst)
err = 1 - accuracy_score(ytst, ypred)
print(err)
Shows the complete multiclass AdaBoost training, prediction, and accuracy-error calculation. section 4.2.3

