A supervised learning task is to learn a model so that the model can make a good prediction of any given input and corresponding output, the basic operation of a computer is to generate an output for a given input.
Basic concepts: input space, feature space, and output space
In supervised learning, the set of all possible input and output values is called the input space and output space respectively ).
Each input is an instance, which is usually represented by a feature vector. In this case, the space of all feature vectors is called Features space ). Each dimension of the feature space corresponds to a feature. Sometimes, if the input space and feature space are the same space, they are not differentiated. Sometimes, if the input space and feature space are different, instances are mapped from the input space to the feature space. The model is actually defined in the feature space.
Input and Output variables are represented by uppercase letters. Traditionally, input variables write X, and output variables write y. The values of input and output variables are represented by lowercase letters. The rabbit variable value is written as X, and the output variable value is written as Y. A variable can be a scalar or vector, which is represented by letters of the same type:
Input instance: x = (X (1), X (2),..., X (I),..., x (n) T
X (I) indicates the I-th feature of X.Supervised Learning models are learned from the training data collection to predict test data. The training data is composed of input (or feature vector) and output pairs.
T = {(x1, Y1), (X2, Y2),..., (Xn, yn )}
The test data is also composed of the corresponding input and output pairs. The input and output pairs are also called sample or sample points.