Model Representation
In supervised learning, we have a data set and this data set is called a training set. The algorithm will learn from this data set and find pattern.
Notation:
- m = Number of training examples; 训练样本的数目
- x's = 'input' variables / features; 特征量
- y's = 'output' variables / 'target' variables; 目标变量
(x, y) : one training example; 一个训练样本
( x (i), y (i)) : ith training example; i不是指数,而是指第i行的样本
How supervised learning algorithm works
- Feed training set to learning algorithm.
- Learning algorithm output a function h(hypothesis).
- The function hypothesis takes in the value of x and tries to output the estimated value y.
- h is a function that maps from x's to y's.
Univariate linear regression : 一元线性回归
(Univeriate is a fancy way of saying one variable)
In this case, x is the only variable.