Multiclass classification
Multiclass classification is a supervised prediction task that assigns each input to exactly one of more than two possible classes.
Deep Learning with R, Third Edition
A multiclass classification model is a predictive model that assigns inputs to one of more than two classes and produces scores or probabilities for those classes.
- How it is used
- Uses multiclass classification to frame predictions over several categories, including newswire topics and a three-way spam problem.
- How deep it goes
- Distinguishes single-label from multilabel tasks and specifies output activations and losses for each.
- Examples
- Uses 46-topic Reuters newswires and a spam task with offensive content as a separate class.
- What you can do after
- Evaluate whether a task is single-label or multilabel and choose an output activation and loss accordingly.
Read how Deep Learning with R, Third Edition explains multiclass classification →
Ensemble Methods for Machine Learning
Multiclass classification is a supervised prediction task whose target has more than two categorical classes.
- How it is used
- Frames supervised prediction problems whose labels belong to more than two categorical classes.
- How deep it goes
- Defines the task and demonstrates library-based ensemble use, while deferring general multiclass algorithms and detailed probability mechanics.
- Examples
- Uses Iris class prediction, LETOR relevance ranking, and per-class probabilities from ensemble classifiers.
- What you can do after
- Apply it via scikit-learn’s AdaBoostClassifier to train, predict, and measure error on multiclass data.
Read how Ensemble Methods for Machine Learning explains multiclass classification →
Related concepts
- classifierkind of · A classifier is a predictive model that assigns an input to one or more discrete classes or categories.
- cross entropy lossused by · Cross-entropy loss measures the expected negative log probability that a predicted distribution assigns to outcomes drawn from a target distribution.
- multilabel classificationincludes · Multilabel classification is a classification task in which each input may be assigned zero or more labels from a predefined set simultaneously.
- random forestused by · A random forest is an ensemble learning model that aggregates predictions from multiple decision trees trained with randomized data samples, feature subsets, or both.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

