1

You train a learning algorithm, and find that it has unacceptably high error on the test set. You plot the learning curve, and obtain the figure below. Is the algorithm suffering from high bias, high variance, or neither?

A、High bias

B、High variance

C、Neither

正确答案:A 训练集误差和测试集误差接近,高偏差

2.第 2 个问题

Suppose you have implemented regularized logistic regression to classify what object is in an image (i.e., to do object recognition). However, when you test your hypothesis on a new set of images, you find that it makes unacceptably large errors with its predictions on the new images. However, your hypothesis performs well (has low error) on the training set. Which of the following are promising steps to take? Check all that apply.

Get more training examples.

Try using a smaller set of features.

Use fewer training examples.

Try adding polynomial features.

正确答案:过拟合,还没选出来,当时只选了B,不对

1 分

3.第 3 个问题

Suppose you have implemented regularized logistic regression to predict what items customers will purchase on a web shopping site. However, when you test your hypothesis on a new set of customers, you find that it makes unacceptably large errors in its predictions. Furthermore, the hypothesis performs poorly on the training set. Which of the following might be promising steps to take? Check all that apply.

A、Use fewer training examples.

B、Try adding polynomial features.

C、Try evaluating the hypothesis on a cross validation set rather than the test set.

D、Try decreasing the regularization parameter λ

正确答案:BD 欠拟合,高偏差,通过增加多项式项和减小lambda来解决问题

4.

Which of the following statements are true? Check all that apply.

A、Suppose you are training a logistic regression classifier using polynomial features and want to select what degree polynomial (denoted d in the lecture videos) to use. After training the classifier on the entire training set, you decide to use a subset of the training examples as a validation set. This will work just as well as having a validation set that is separate (disjoint) from the training set.

B、A typical split of a dataset into training, validation and test sets might be 60% training set, 20% validation set, and 20% test set.

C、Suppose you are using linear regression to predict housing prices, and your dataset comes sorted in order of increasing sizes of houses. It is then important to randomly shuffle the dataset before splitting it into training, validation and test sets, so that we don’t have all the smallest houses going into the training set, and all the largest houses going into the test set.

D、It is okay to use data from the test set to choose the regularization parameter λ, but not the model parameters (θ).

正确答案:BC  A的错误原因,验证集不能是训练集的子集,要不就没有意义了;

5.

Which of the following statements are true? Check all that apply.

A、When debugging learning algorithms, it is useful to plot a learning curve to understand if there is a high bias or high variance problem.

B、A model with more parameters is more prone to overfitting and typically has higher variance.

C、If a learning algorithm is suffering from high bias, only adding more training examples may not improve the test error significantly.

D、If a neural network has much lower training error than test error, then adding more layers will help bring the test error down because we can fit the test set better.

正确答案:ABC 。。D的错误原因:高方差,已经过拟合了,再增加层数,模型复杂度更大,更容易过拟合

Week 6 测验:Advice for Applying Machine Learning【Maching Learning】相关推荐

  1. Machine Learning week 6 quiz: Advice for Applying Machine Learning

    Advice for Applying Machine Learning 5 试题 1. You train a learning algorithm, and find that it has un ...

  2. 斯坦福大学机器学习第十课“应用机器学习的建议(Advice for applying machine learning)”

    斯坦福大学机器学习第十课"应用机器学习的建议(Advice for applying machine learning)" 斯坦福大学机器学习斯坦福大学机器学习第十课"应 ...

  3. 斯坦福机器学习视频笔记 Week6 关于机器学习的建议 Advice for Applying Machine Learning...

    我们将学习如何系统地提升机器学习算法,告诉你学习算法何时做得不好,并描述如何'调试'你的学习算法和提高其性能的"最佳实践".要优化机器学习算法,需要先了解可以在哪里做最大的改进. ...

  4. Advice for applying machine learning - Diagnosing bias vs. variance

    摘要: 本文是吴恩达 (Andrew Ng)老师<机器学习>课程,第十一章<应用机器学习的建议>中第86课时<诊断偏差与方差>的视频原文字幕.为本人在视频学习过程中 ...

  5. Coursera机器学习-第六周-Advice for Applying Machine Learning

    Evaluating a Learning Algorithm Desciding What to Try Next 先来看一个有正则的线性回归例子: 当在预测时,有很大的误差,该如何处理? 1.得到 ...

  6. 斯坦福大学公开课机器学习:advice for applying machine learning | learning curves (改进学习算法:高偏差和高方差与学习曲线的关系)...

    绘制学习曲线非常有用,比如你想检查你的学习算法,运行是否正常.或者你希望改进算法的表现或效果.那么学习曲线就是一种很好的工具.学习曲线可以判断某一个学习算法,是偏差.方差问题,或是二者皆有. 为了绘制 ...

  7. Week 8 测验:Principal Component Analysis【Maching Learning】

    4.第 4 个问题 Which of the following statements are true? Check all that apply. A .Given only and Ureduc ...

  8. 【机器学习笔记】可解释机器学习-学习笔记 Interpretable Machine Learning (Deep Learning)

    [机器学习笔记]可解释机器学习-学习笔记 Interpretable Machine Learning (Deep Learning) 目录 [机器学习笔记]可解释机器学习-学习笔记 Interpre ...

  9. (转)Paper list of Meta Learning/ Learning to Learn/ One Shot Learning/ Lifelong Learning

    Meta Learning/ Learning to Learn/ One Shot Learning/ Lifelong Learning 2018-08-03 19:16:56 本文转自:http ...

最新文章

  1. 我也来说说js的事件机制
  2. [原创] 浅谈ETL系统架构如何测试?
  3. php监听mq消息,客户端监听服务端获取rabbitmq消息队列,rabbitmq有消息的时候客户端刷新页面才能获取到消息,监听没起到作用,请求各位大神指点迷津...
  4. 根据图片获得配色方案_配色系列(1)—从图片中获得配色灵感
  5. centos7与centos6区别
  6. TV Battle --HOJ 11915
  7. linux mod_ssl源码安装,linux下不重新编译apache添加安装mod_ssl模块和错误的处理方法...
  8. kindeditor自定义插件插入视频代码
  9. 获取经纬度之间距离的Java工具类
  10. Alien Skin Exposure X6 mac汉化免费插件包胶片滤镜新功能介绍
  11. 软考网络工程师考试大纲
  12. vue 微信公众号支付接口_vue项目中使用微信公众号支付的方法有哪些
  13. word 文档多级列表编号设置
  14. 固态硬盘寿命测试一年半 寿命指数超乎想象 连写2500TB终于全挂
  15. 高性能计算中的并行计算、分布式计算、网格计算和云计算之间的区别与联系
  16. Android11裁剪,Andorid 11调用系统裁剪
  17. 虹软视觉人工智能开放平台创享会圆满落幕,干货满满频获点赞
  18. 实验三 XSS和SQL注入
  19. 输入名字显示其电话号码
  20. 双线机房托管双线双IP20M独享带宽4500/年 欢迎咨询Q1763371

热门文章

  1. [vant] 使用vant的checkbox到页面,发现点击没有反应
  2. JAVA POI读取带有多张图片的excel时发生的问题
  3. Quartus II 软件编写程序及烧录步骤
  4. Mahout(机器学习引擎)
  5. NTT DATA处女面
  6. visual studio for Mac (M1)下载
  7. 虚拟化精华问答 | 为什么云计算需要虚拟化?
  8. iOS内IPC(进程间通信)方法小结
  9. VGGNet网络详解与模型搭建
  10. 笔记本外放无声而带上耳机有声的解决办法