Supervised learning is a type of machine learning algorithm that learns a mapping function y = f(x) between input variables (x) and output variables (y). The two most common supervised learning tasks are classification and regression.

Supervised learning is the machine learning task of inferring a function from labeled training data. The training data consist of a set of training examples. In supervised learning, each example is a pair consisting of an input object (typically a vector) and a desired output value (also called the supervisory signal).