Back to Glossary
Machine Learning

Binary classification

Binary classification is a supervised machine learning task where the goal is to categorize data points into one of two distinct classes. It involves training a model on labeled data to learn the patterns that differentiate between the two classes and then using that model to predict the class of new, unseen data.

Explanation

In binary classification, the output is a single binary value (e.g., 0 or 1, True or False, Positive or Negative) representing the predicted class. Algorithms used for binary classification learn a decision boundary that separates the two classes in the feature space. Common algorithms include logistic regression, support vector machines (SVM), decision trees, and neural networks. The performance of a binary classification model is typically evaluated using metrics such as accuracy, precision, recall, F1-score, and AUC (Area Under the ROC Curve). The choice of algorithm and evaluation metric depends on the specific problem and the relative importance of different types of errors (false positives vs. false negatives). For example, in medical diagnosis, minimizing false negatives (missing a disease) might be more crucial than minimizing false positives (incorrectly diagnosing a disease).

Related Terms