【Machine Learning】【Andrew Ng】- Quiz(Week 7)

1、Suppose you have trained an SVM classier with a Gaussian kernel, and it learned the following decision boundary on the training set:
这里写图片描述
You suspect that the SVM is undertting your dataset. Should you try increasing or decreasing C? Increasing or decreasing sigma?
A. It would be reasonable to try decreasing C. It would also be reasonable to try increasing sigma^2.
B. A. It would be reasonable to try increasing C. It would also be reasonable to try increasing sigma^2.
C. A. It would be reasonable to try decreasing C. It would also be reasonable to try decreasing sigma^2.
D. A. It would be reasonable to try increasing C. It would also be reasonable to try decreasing sigma^2.
答案:D.
underfit,所以lambda过大,需要减小,所以C需要增大,sigma^2需要减小

2、The formula for the Gaussian kernel is given by similarity
这里写图片描述
The figure below shows a plot of
这里写图片描述
这里写图片描述
Which of the following is a plot of
这里写图片描述
A.
这里写图片描述
B.
这里写图片描述
C.
这里写图片描述
D.
这里写图片描述
答案:B。
sigma越小,约集中,越瘦。

3、The SVM solves
这里写图片描述
where the functions cost0(z) and cost1(z) look like this:
这里写图片描述
The first term in the objective is:
这里写图片描述
This first term will be zero if two of the following four conditions hold true.
Which are the two conditions that would guarantee that this term equals zero?
A. 这里写图片描述
B. 这里写图片描述
C. 这里写图片描述
D. 这里写图片描述
答案:BD。
直接代入公式就可得到。

4、Suppose you have a dataset with n = 10 features and m = 5000 examples.
After training your logistic regression classier with gradient descent, you find that it has underfit the training set and does not achieve the desired performance on the training or cross validation sets.
A. Use an SVM with a linear kernel, without introducing new features.
B. Use an SVM with a Gaussian Kernel.
C. Create / add new polynomial features.
D. Increase the regularization parameter λ.
答案:BC.

5、Which of the following statements are true? Check all that apply.
A. Suppose you are using SVMs to do multi-class classification and would like to use the one-vs-all approach. If you have K different classes, you will train K- 1 different SVMs
B. The maximum value of the Gaussian kernel is 1
C. If the data are linearly separable, an SVM using a linear kernel will return the same parameters theta regardless of the chosen value of C (i.e., the resulting value of does not depend on C)
D. It is important to perform feature normalization before using the Gaussian kernel.
答案:BD
A错误,还不知道为什么
B正确,取值范围为0-1.
C.错误
D.正确,一定要记得先标准化

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值