📣 Back to School开学季 - VIP通行证5折优惠!蓝莓、Offer多多同步优惠
12
返回列表 发新帖
楼主: stanslug
跳转到指定楼层
上一主题 下一主题
收起左侧

Stanford Machine Learning Week 3: Regularization

🔗
pangxiong 2017-7-17 16:39:57 | 只看该作者
全局:
5. You are training a classification model with logistic regression. Which of the following statements are true? Check all that apply.【D】 A. Introducing regularization to the model always results in equal or better performance on the training set.Introducing regularization to the model always results in equal or better performance on the training set.  【解析】If we introduce too much regularization, we can underfit the training set and have worse performance on the training set. B.Adding many new features to the model helps prevent overfitting on the training set. 【解析】Adding many new features gives us more expressive models which are able to better fit our training set. If too many new features are added, this can lead to overfitting of the training set. C. Adding a new feature to the model always results in equal or better performance on examples not in the training set. 【解析】Adding more features might result in a model that overfits the training set, and thus can lead to worse performs for examples which are not in the training set. D.Adding a new feature to the model always results in equal or better performance on the training set. 【解析】By adding a new feature, our model must be more (or just as) expressive, thus allowing it learn more complex hypotheses to fit the training set.
回复

使用道具 举报

🔗
fyswords 2017-8-7 17:12:22 | 只看该作者
全局:
第一题我开始选了CD。我觉得D里说的对training set以外的数据预测的更好正是引入regularization的作用,提交时候被判错。
后来又想了想,如果本来就已经fit,或者regularization的不合适(比如λ过大),也不能保证起反作用。是不是应该这么理解?
回复

使用道具 举报

🔗
EtoDemerzel 2017-10-21 14:51:12 | 只看该作者
全局:
fyswords 发表于 2017-8-7 17:12
第一题我开始选了CD。我觉得D里说的对training set以外的数据预测的更好正是引入regularization的作用,提 ...

你是对的。过大的lamda会导致underfit。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册账号
隐私提醒:
  • ☑ 禁止发布广告,拉群,贴个人联系方式:找人请去🔗同学同事飞友,拉群请去🔗拉群结伴,广告请去🔗跳蚤市场,和 🔗租房广告|找室友
  • ☑ 论坛内容在发帖 30 分钟内可以编辑,过后则不能删帖。为防止被骚扰甚至人肉,不要公开留微信等联系方式,如有需求请以论坛私信方式发送。
  • ☑ 干货版块可免费使用 🔗超级匿名:面经(美国面经、中国面经、数科面经、PM面经),抖包袱(美国、中国)和录取汇报、定位选校版
  • ☑ 查阅全站 🔗各种匿名方法

本版积分规则

>
快速回复 返回顶部 返回列表