Large Scale Machine Learning

这里写图片描述

Before learning with large datasets, plot a learning curve with a much small datasets, and to see if it appears to be have high bias.


Stochastic Gradient Decent
(taking linear regression for example)

这里写图片描述
这里写图片描述

(Repeat between 1 to 10 times)

as the picture shows, it will converge in random directions and fail to converge into a single point, but much more effective and faster, compared with Batch Gradient Descent.


Mini-Batch Gradient Descent

这里写图片描述
这里写图片描述

b is often chosen from 2 to 100

Mini-Batch will be faster than Stochastic only by vetorization.


Checking for Converge
(without scanning over the entire training set periodically)
这里写图片描述
In plot 1, with a smaller α , the red line converge better, however, slower.
In plot 2 and 3, with a larger examples, the red line looks smoother, which do help to plot 3 confronted too much noise. Similarly, it will be slower.
In plot 4, with a increasing plot, maybe we should using a smaller α instead.


Learning Rate

to get closer to the optima:

这里写图片描述

However, it will become a hard work to choose these two constants, so it maybe not good choice.


the online learning
—to learn from a continuous stream of data

这里写图片描述

Without the superscript i, while a set of data has been used, we discard it.
And it also can adapt to change preference.

这里写图片描述
CTR(Click Through Rate)

With 10 pairs of (x,y), they are also 10 examples, which can improve our parameters.


Map Reduce

这里写图片描述
这里写图片描述
这里写图片描述
这里写图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值