机器学习第二章答案2

上传人:p****杀 文档编号:253510383 上传时间:2022-02-13 格式:PDF 页数:3 大小:17.51KB
返回 下载 相关 举报
机器学习第二章答案2_第1页
第1页 / 共3页
机器学习第二章答案2_第2页
第2页 / 共3页
机器学习第二章答案2_第3页
第3页 / 共3页
亲,该文档总共3页,全部预览完了,如果喜欢就下载吧!
资源描述

《机器学习第二章答案2》由会员分享,可在线阅读,更多相关《机器学习第二章答案2(3页珍藏版)》请在金锄头文库上搜索。

1、11.1. Give three computer applications for which machine learning approaches seem appropriate and three for which they seem inappropriate. Pick applications that are not already mentioned in this chapter, and include a one-sentence justification for each. Ans. Machine learning: Face recognition, han

2、dwritten recognition, credit card approval. Not machine learning: calculate payroll, execute a query to database, use WORD. 2.1. Explain why the size of the hypothesis space in the EnjoySport learning task is 973. How would the number of possible instances and possible hypotheses increase with the a

3、ddition of the attribute WaterCurrent, which can take on the values Light, Moderate, or Strong? More generally, how does the number of possible instances and hypotheses grow with the addition of a new attribute A that takes on k possible values? Ans. Since all occurrence of “ ” for an attribute of t

4、he hypothesis results in a hypothesis which does not accept any instance, all these hypotheses are equal to that one where attribute is “ ”. So the number of hypothesis is 4*3*3*3*3*3 +1 = 973. With the addition attribute Watercurrent, the number of instances = 3*2*2*2*2*2*3 = 288, the number of hyp

5、othesis = 4*3*3*3*3*3*4 +1 = 3889. Generally, the number of hypothesis = 4*3*3*3*3*3*(k+1)+1. 2.3. Consider again the EnjoySport learning task and the hypothesis space H described in Section 2.2. Let us define a new hypothesis space H that consists of all pairwise disjunctions of the hypotheses in H

6、. For example, a typical hypothesis in H is (?, Cold, High, ?, ?, ?) v (Sunny, ?, High, ?, ?, Same) Trace the CANDIDATE-ELIMINATATION algorithm for the hypothesis space H given the sequence of training examples from Table 2.1 (i.e., show the sequence of S and G boundary sets.) Ans. S0= (, , ) v (, ,

7、 )G0 = (?, ?, ?, ?, ?, ?) v (?, ?, ?, ?, ?, ?) Example 1: S1=(Sunny, Warm, Normal, Strong, Warm, Same)v (, , )G1 = (?, ?, ?, ?, ?, ?) v (?, ?, ?, ?, ?, ?) Example 2: S2= (Sunny, Warm, Normal, Strong, Warm, Same)v (Sunny, Warm, High, Strong, Warm, Same),(Sunny, Warm, ?, Strong, Warm, Same) v ( , , ,

8、, , ) G2 = (?, ?, ?, ?, ?, ?) v (?, ?, ?, ?, ?, ?) Example 3: S3=(Sunny, Warm, Normal, Strong, Warm, Same)v (Sunny, Warm, High, Strong, Warm, Same),(Sunny, Warm, ?, Strong, Warm, Same) v ( , , , , , ) G3 = (Sunny, ?, ?, ?, ?, ?) v (?, Warm, ?, ?, ?, ?), (Sunny, ?, ?, ?, ?, ?) v (?, ?, ?, ?, ?, Same

9、), (?, Warm, ?, ?, ?, ?) v (?, ?, ?, ?, ?, Same )2Example 4: S4= (Sunny, Warm, ?, Strong, ?, ?) v (Sunny, Warm, High, Strong, Warm, Same) ,(Sunny, Warm, Normal, Strong, Warm, Same) v (Sunny, Warm, High, Strong, ?, ?) ,(Sunny, Warm, ?, Strong, ?, ?) v (, , ),(Sunny, Warm, ?, Strong, Warm, Same)v (Sun

10、ny, Warm, High, Strong, Cool, Change)G4 = (Sunny, ?, ?, ?, ?, ?) v (?, Warm, ?, ?, ?, ?), (Sunny, ?, ?, ?, ?, ?) v (?, ?, ?, ?, ?, Same ), (?, Warm, ?, ?, ?, ?) v (?, ?, ?, ?, ?, Same )2.4. Consider the instance space consisting of integer points in the x, y plane and the set of hypotheses H consist

11、ing of rectangles. More precisely, hypotheses are of the form a x b, c yd, where a, b, c, and d can be any integers. (a) Consider the version space with respect to the set of positive (+) and negative (-) training examples shown below. What is the S boundary of the version space in this case? Write

12、out the hypotheses and draw them in on the diagram. (b) What is the G boundary of this version space? Write out the hypotheses and draw them in. (c) Suppose the learner may now suggest a new x, y instance and ask the trainer for its classification. Suggest a query guaranteed to reduce the size of th

13、e version space, regardless of how the trainer classifies it. Suggest one that will not. (d) Now assume you are a teacher, attempting to teach a particular target concept (e.g., 3 x 5, 2 y 9). What is the smallest number of training examples you can provide so that the CANDIDATE-ELIMINATION algorith

14、m will perfectly learn the target concept? Ans. (a) S= (4,6,3,5) (b) G=(3,8,2,7) (c) e.g., (7,6), (5,4) (d) 4 points: (3,2,+), (5,9,+), (2,1,-),(6,10,-) 2.6. Complete the proof of the version space representation theorem (Theorem 2.1). Proof: Every member of VSH,D satisfies the right-hand side of ex

15、pression. Let h be an arbitrary member of VSH,D, then h is consistent with all training examples in D. Assuming h does not satisfy the right-hand side of the expression, it means ? (?s S)?(g G)(g h s) = ? (?s S)?(g G) (g h) (h s). Hence, there does not exist g from G so that g is more general or equ

16、al to h or there does not exist s from S so that h is more general or equal to s. If the former holds , it leads to an inconsistence according to the definition of G. If the later holds, it 3leads to an inconsistence according to the definition of S. Therefore, h satisfies the right-hand side of the expression. (Notes: since we assume the expression is not fulfilled, this can be only be if S or G is empty, which can only be in the case of any inconsistent training examples, such as noise or the

展开阅读全文
相关资源
相关搜索

当前位置:首页 > IT计算机/网络 > 网络资源

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号