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. geohash java github_GitHub - GongDexing/Geohash: GeoHash是目前比较主流实现位置服务的技术,用最简洁的Java实现GeoHash算法...
  2. 采集/自动登录啊都可以用这两个方法实现 asp.net
  3. Lambda 表达式有何用处?如何使用?
  4. C++STL中的vector
  5. opencv图片处理和摄像头边缘检测
  6. 超级马里奥游戏像素素材_《超级马里奥3D世界+库巴之怒》游戏文件尺寸相当小...
  7. ShellAPI 调用搜索引擎
  8. 构建简单的微服务架构
  9. C#处理JSON 数据
  10. LB负载均衡集群--LVS
  11. Spring Boot 文件上传
  12. 视频直播系统源码,简单的移动端轮播图
  13. docx4j 操作word中的chart
  14. 2022年潜江中级工程师职称申报材料和申报渠道是什么呢?甘建二
  15. 智能眼镜革命:从功能机到智能机,转折点临近
  16. 装了svn桌面右键没有_右键菜单没有svn选项怎么办|win7 svn没有右键菜单怎么解决|svn添加到右键菜单方法...
  17. 利用电子邮件“钓鱼”的常见手段
  18. html 内嵌iframe,html页面 内嵌iframe
  19. 中兴盒子B860AV1.1-T2版刷公版固件教程
  20. 如何搭建属于自己的腾讯云服务器

热门文章

  1. js+canvas实现雨滴特效
  2. 数学建模美赛前期准备
  3. p2p终结者破解版下载 4.15 2011最新版
  4. 【锐捷无线】定时开关无线信号配置
  5. JVAV——网络编程UDP/TCP
  6. 如何成为专业大数据架构师?
  7. 五子棋源码 php,js实现五子棋代码分享
  8. Mac安装mysql忘记初始的默认密码!!
  9. 【软件测试基础理论知识】2.软件缺陷、软件缺陷与Bug的区别、PIE模型
  10. 计算机资源管理菜单包括哪些,玩转Win7之“资源管理器窗口” -电脑资料