Machine learning week 6(Andrew Ng)

Advice for applying machine learning

1、Advice

1.1、What to try next

在这里插入图片描述

1.2、Evaluating model
  • To test your model’s performance on new data before deploying it? we can split the training set into “Training” and “Test” sets.
    - For the linear regression :
    在这里插入图片描述
1.3、Model selection and training/cross validation/test sets

The original thought is to choose the least J t e s t ( w , b ) J_{test}(w,b) Jtest(w,b).
But the test set J test is now overly optimistic that is lower than the actual estimate of the generalization error.
We divide the data set into three parts and pick the least J c v ( w , b ) J_{cv}(w,b) Jcv(w,b).
在这里插入图片描述
在这里插入图片描述

2、Bias and variance

2.1、Diagnosing bias and variance

Underfit produces high bias while overfit produces high variance.
在这里插入图片描述
在这里插入图片描述
The notion of high bias and high variance, it doesn’t really happen for linear models applied to one deep. But it is possible sometimes they’re both at the same time.

2.2、Regularization and bias/variance

在这里插入图片描述
在这里插入图片描述

2.3、Establishing a baseline level of performance

Determine the baseline first.
在这里插入图片描述

2.4、Learning curves

在这里插入图片描述
Learning curves
在这里插入图片描述

2.5、Deciding what to try next revisited

在这里插入图片描述

2.6、Bias/variance and neural networks

在这里插入图片描述

if you have a small neural network like this, and you were to switch to a much larger neural network like this, you would think that the risk of overfitting goes up significantly. But it turns out that if you were to regularize this larger neural network appropriately, then this larger neural network usually will do at least as well or better than the smaller one. So long as the regularization has been chosen appropriately.

在这里插入图片描述

3、Machine learning development process

3.1、Iterative loop of ML development

在这里插入图片描述

3.2、Error analysis

Hopefully looking through maybe around 100 examples will give you enough statistics about whether the most common types of errors and therefore where maybe most fruitful to focus your attention. After this analysis, if you find that a lot of errors are pharmaceutical spam emails then this might give you some ideas or inspiration for things to do next.

3.3、Adding data

There are many ways to enhance data based on the data we had before.

3.4、Transfer learning: using data from a different task

在这里插入图片描述

在这里插入图片描述

3.5、Full cycles of a machine learning project

在这里插入图片描述

4、Skewed datasets

4.1、Error metrics(误差度量) for skewed datasets

The ratio of positive to negative examples is very skewed, very far from 50-50, then it turns out that the usual error metrics like accuracy don’t work that well.
在这里插入图片描述

4.2、Trading off precision and recall

在这里插入图片描述
在这里插入图片描述

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值