Machine Learning Course 1 and 2

What is the Machine Learning?

​ Experience E , Task T, Performance measure P

​ If its performance on T as measured by P , improves with experience E。

​ 经验 E, 任务 T, 性能度量 P。

​ 由 P 定义的关于 T 的性能随着 E经验而提高。

Machine Learning Algorithm

  • Supervised learning (监督学习, 告诉计算机什么是正确的, 什么是错误的)
  • Unsupervised learning (由计算机自己学习如何正确)
  • Reinforcement learning (增强学习)
  • Recommender Systems (推荐系统)

Supervised Learning

​ “right answers” Given

Regression: Predict continuous valued output

​ 回归问题: 预测一个连续的输出值。

Classification: Discrete valued output(0 or 1)

​ 分类问题: 预测离散的输出值。

Unsupervised Learning

​ cluster 聚类.

​ 聚类问题。

​ Clustering algorithm

Linear regression with one variable

Model representation

​ fit a model 拟合模型

···

hθ(x)=θ0+θ1x

Linear regression with one variable or univariate linear regression

​ 单变量线性回归。

hθ(x)=θ0+θ1x

θi : Parameters 模型参数。

Cost function

squared error cost function J(θ0,θ1)=12mmi=1(hθ(x(i)y(i))2 minimazeθ0,θ1J(θ0,θ1)

Gradient descent

​ 梯度下降算法, 找到 Min{J(θ0,θ1)}

repeatuntilconvergence:θj:=θjαθjJ(θ0,θ1)


Correct : Simultaneous update

temp0:=θ0αθ0J(θ0,θ1)temp1:=θ1αθ1J(θ0,θ1)θ0:=temp0;θ1:=temp1

Gradient descent algorithm

repeatuntilconvergence:θ0:=θ0α1mi=1m(hθ(x(i)y(i)))θ1:=θ1α1mi=1m(hθ(x(i)y(i)))x(i)

​ “Batch” : Each step of gradient descent uses all the training examples.

​ 每一次梯度下降,都使用所有的训练集合。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值