机器学习的定义
由Tom Mitchell提出,来自卡内基梅隆大学,Tom定义的机器学习是,一个好的学习问题定义如下,他说,一个程序被认为能从经验E中学习,解决任务T,达到性能度量值P,当且仅当,有了经验E后,经过P评判,程序在处理T时的性能有所提升。
监督学习 Supervised Learning
- 回归 Regression
- predict continuous valued output
- 分类 Classification
- discrete valued output
无监督学习 Unsupervised Learning
- 聚类
- 鸡尾酒宴会问题
单变量线性回归 Linear Regression with One Variable
- 训练集 Training Set
- 假设 hypothesis
- 代价函数 Cost Funciton
- 梯度下降 Gradient Descent
Example:
Hypothesis :
Cost Funciton :
批量梯度下降算法 batch gradient descent algorithm
-
算法
For the upper example, it has
repeat until convergence {
}
$\alpha$ 是学习率 learning rate
-
局部最优
- $\theta$ 最终会收敛,偏导数为 $0$