机器学习算法学习笔记(二)

监督学习分类:Supervised learning:
1>regression problem: predict real-value output
2>classification problem: predict discrete-value output

约定符号:
Dataset—training set
M = number of training examples
X’s = “input” variable/features
Y’s = “output” variable/“target” variable
(x,y) = one training example
(x^I, y^I) = i th training example

假设函数:Hypothesis: h

代价函数:Cost function:(1/(2M))(预期值与实际值平方差的和)

两函数的区别:假设函数(hypothesis)是关于X的函数,代价函数(cost)是关于参数theta的函数

机器学习目标:goal:minimize(cost function)

梯度下降算法:gradient descent:
keep changing parameters to reduce cost function until we hopefully end up at a minimum

梯度下降注意:
1/gradient descent需要同时更新所有参数
2/gradient descent的step会在接近局部最低点时自动减小

梯度下降下降算法中Batch:Each step of gradient descent uses all the training example.

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值