Updated: March 10, 2016
Creates a multiclass classification model from an ensemble of binary classification models
You can use the One-Vs-All Multiclass module to create a classification model that predicts multiple classes.
This module is useful for creating models that predict three or more possible outcomes, when the outcome depends on continuous or categorical predictor variables. This method also lets you use binary classification methods for issues that require multiple output classes.
To use this classifier, you connect it to an existing untrained two-class classification algorithm, and configure that model. You then train the model as usual by using Train Model with a labeled training dataset. Although the training dataset might have multiple class values, the One-Vs-All Multiclass creates multiple binary classification models, optimizes the algorithm for each class, and then merges the models.
While some classification algorithms naturally permit the use of more than two classes, others are naturally binary (two-class) algorithms. However, binary classification algorithms can be turned into multi-class classification algorithms by a variety of strategies. This module implements the one vs. all method, in which a binary model is created for each of the multiple output classes. Each of these binary models for the individual classes is assessed against its complement (all other classes in the model) as though it were a binary classification issue. Prediction is then performed by running these binary classifiers, and choosing the prediction with the highest confidence score.
In essence, an ensemble of individual models is created and the results are then merged, to create a single model that predicts all classes. Thus, any binary classifier can be used as the basis for a one-vs-all model.
For example, let’s say you configure a Two-Class Support Vector Machine model and provide that as input to the One-Vs-All Multiclass module. The module would create two-class support vector machine models for all members of the output class and then apply the one-vs-all method to combine the results for all classes.
Add the One-Vs-All Multiclass to your experiment.
Add one of the two-class classification models to the experiment, and configure that model.
Need help choosing the right algorithm? See these resources:
Note that the One-Vs-All Multiclass classifier has no configurable parameters of its own. Any customizations must be done in the model that is provided as input.
After it has been trained, the model can be used to make multiclass predictions.
Alternatively, you can pass the untrained classifier can also be passed to Cross-Validate Model for cross-validation against a labeled validation data set.
For examples of how this learning algorithm is used, see these sample experiments in the Model Gallery:
Untrained binary classification model
An untrained binary classification model