Binary Classification

In machine learning, classification refers to a predictive modeling problem where a class label is predicted for a given example of input data.

Examples of classification problems include:

  • Given an example, classify if it is spam or not.

  • Given a handwritten character, classify it as one of the known characters.

  • Given recent user behavior, classify as churn or not.

From a modeling perspective, classification requires a training dataset with many examples of inputs and outputs from which to learn.

A model will use the training dataset and will calculate how to best map examples of input data to specific class labels. As such, the training dataset must be sufficiently representative of the problem and have many examples of each class label.

There are many different types of classification algorithms for modeling classification predictive modeling problems.

There are perhaps three main types of classification tasks that you may encounter; they are:

  1. Binary Classification

  2. Multi-Class Classification

  3. Multi-Label Classification

Binary Classification

Binary classification refers to those classification tasks that have two class labels. Typically, binary classification tasks involve one class that is the normal state and another class that is the abnormal state.

Multi-Class Classification

Multi-class classification refers to those classification tasks that have more than two class labels.

Unlike binary classification, multi-class classification does not have the notion of normal and abnormal outcomes. Instead, examples are classified as belonging to one among a range of known classes.

The number of class labels may be very large on some problems. For example, a model may predict a photo as belonging to one among thousands or tens of thousands of faces in a face recognition system.

Multi-Label Classification

Multi-label classification refers to those classification tasks that have two or more class labels, where one or more class labels may be predicted for each example.

Consider the example of photo classification, where a given photo may have multiple objects in the scene and a model may predict the presence of multiple known objects in the photo, such as “bicycle”, “apple”, “person,” etc.

This is unlike binary classification and multi-class classification, where a single class label is predicted for each example.

Last updated