吴恩达Machine Learning week 3 review答案: Regularization

1]You are training a classification model with logistic

regression. Which of the following statements are true? Check

all that apply.

Adding many new features to the model helps prevent overfitting on the training set.

Adding a new feature 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.

Introducing regularization to the model always results in equal or better performance on examples not in the training set.

1
point
2。

Suppose you ran logistic regression twice, once with  λ=0 , and once with  λ=1 . One of the times, you got

parameters  θ=[26.2965.41] , and the other time you got

θ=[2.751.32] . However, you forgot which value of

λ  corresponds to which value of  θ . Which one do you

think corresponds to  λ=1 ?

θ=[26.2965.41]

θ=[2.751.32]

1
point
3。

Which of the following statements about regularization are

true? Check all that apply.【B和C不确定】

【错的】Using a very large value of  λ  cannot hurt the performance of your hypothesis; the only reason we do not set  λ  to be too large is to avoid numerical problems.

Consider a classification problem. Adding regularization may cause your classifier to incorrectly classify some training examples (which it had correctly classified when not using regularization, i.e. when  λ=0 ).

Using too large a value of  λ  can cause your hypothesis to overfit the data; this can be avoided by reducing  λ .

【错的】Because logistic regression outputs values  0hθ(x)1 , its range of output values can only be "shrunk" slightly by regularization anyway, so regularization is generally not helpful for it.

1
point
4。

In which one of the following figures do you think the hypothesis has overfit the training set?

Figure:

Figure:

Figure:

Figure:

1
point
5。

In which one of the following figures do you think the hypothesis has underfit the training set?

Figure:

Figure:

Figure:

Figure:



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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值