Unformatted text preview:

6.034 Quiz 4December 3, 2008There are 7 pages in this quiz, including this one. In addition, 1 tear-off sheet is provided at the end.Problem 1: Support Vectors (50 points)6.034 Quiz 4 December 3, 2008 Name EMail Circle your TA and recitation time, if any, so that we can more easily enter your score in our records and return your quiz to you promptly. TAs Sam Glidden Mike Klein Mark Seifter Norman C. N. Quest Thu Time Instructor 1-2 Bob Berwick 2-3 Bob Berwick 3-4 Bob Berwick Fri Time Instructor 1-2 Howard Shrobe 2-3 Howard Shrobe 3-4 Howard Shrobe Problem number Maximum Score Grader 1 50 2 50 Total 100 There are 7 pages in this quiz, including this one. In addition, 1 tear-off sheet is provided at the end. As always, open book, open notes, open just about everything. 1Problem 1: Support Vectors (50 points) Part A (30 points) The following three graphs represent the training data for two-dimensional, linear SVMs. + symbols indicate the coordinates of positive examples, which the classifier should give a value of 1 or more, and – symbols represent the coordinates of negative examples, which the classifier should give a value of -1 or less. For each graph, you should do the following three things: (a) Circle the support vectors (b) Draw the “street” produced by the SVM, with solid lines where the classifier outputs 1 or -1 and a dashed line where the classifier outputs 0 (c) Describe the classifier function h(x) = w·x + b, by giving the values of w and b Graph #1 w = b = 2Graph #2 w = b = Graph #3 w = b = 3Part B (20 points) Susan Q. Randomstudent is frustrated by the data she is supposed to classify with a support vector machine. It's all on the same line, defined only by an x-coordinate, and it switches back and forth from clusters of + points to clusters of – points several times, so it's not at all linearly separable. Eventually, though, she figures out a kernel function that she can use to separate the data: K(x1, x2) = cos 4 πx1 cos π 4 x2 sin  π 4 x1 sin  4 πx2  1. What is the Ф function that projects x into the new space defined by this kernel? (The function should take in x and output a vector with two components.) Ф(x) = 2. On the grid below, draw the + and – points in the new space, and draw the “street” that linearly separates them. 4Problem 2: Boosting (50 points) Prof. Winston wants you to study the link between sleep, coffee, and 6.034 quiz grades. He gathered 6 data points from the previous quiz for you: You decide to encode “Grade = 5” as +1, and “Grade < 5” as -1. For this entire problem, consider only horizontal and vertical classifier stumps halfway between two data points, e.g. h(c,s) = sign(c - 2.5) or h(c,s) = sign(2 – s). You may also use h(c,s) = +1 and h(c,s) = -1. In case of ties: prefer stumps involving s (horizontal) over stumps involving c (vertical), and prefer lower thresholds (s < 1.5) over higher (s < 2.5). Blanket classifiers h(c,s) = +1 and h(c,s) = -1 come last. 5Part A (30 points) Use Adaboost for 3 rounds. First update the weights using the results of the previous round, find the best stump h(c,s) and its error ε . The starting weights have been filled in for you.. w1 = 1/6 w2 = 1/6 w3 = 1/6 w4 = 1/6 w5 = 1/6 w6 = 1/6 h1(c,s) = ε1 = w1 = w2 = w3 = w4 = w5 = w6 = h2(c,s) = ε2 = w1 = w2 = w3 = w4 = w5 = w6 = h3(c,s) = ε3 = 6Part B (15 points) What is the current Adaboost classifier made from combining these first three stumps? How many errors does it make on the training data? H(c,s) = # of errors = Part C (5 points) If you were to run Adaboost for 100 more rounds, which data point or data points do you expect to have the least weight? Explain briefly. (You may write down another 100 rounds as in Part A in lieu of explanation.) 7(This page is blank for a very good reason.) 8910MIT OpenCourseWarehttp://ocw.mit.edu6.034 Artificial IntelligenceFall 2010For information about citing these materials or our Terms of Use, visit:


View Full Document

MIT 6 034 - Quiz 4

Documents in this Course
Quiz 1

Quiz 1

15 pages

Quiz 2

Quiz 2

21 pages

Quiz 3

Quiz 3

18 pages

Quiz 1

Quiz 1

14 pages

Quiz 2

Quiz 2

15 pages

Quiz 2

Quiz 2

13 pages

Quiz 3

Quiz 3

13 pages

Quiz 2

Quiz 2

13 pages

Load more
Download Quiz 4
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Quiz 4 and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Quiz 4 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?