Model Representation 模型表示
To establish notation for future use, we'll use x^{(i)}x( i ) to denote the “input” variables (living area in this example), also called input features, andy^{(i)} to denote the “output” or target variable that we are trying to predict (price). A pairis called a training example, and the dataset that we'll be using to learn—a list of m training examples
To describe the supervised learning problem slightly more formally, our goal is, given a training set, to learn a function h : X → Y so that h(x) is a “good” predictor for the corresponding value of y. For historical reasons , this function h is called a hypothesis. Seen pictorially, the process is therefore like this:

当我们试图预测的目标变量是连续的时,例如在我们的住房示例中,我们将学习问题称为回归问题。当y只能承受少量离散值时(例如,如果给定生活区域,我们想要预测住宅是房屋还是公寓),我们将其称为分类问题。