Docsity

Pattern Recognition and Machine Learning Exam - Spring 2005 | CS 446, Exams of Computer Science

Toggle sidebar
bg1
CS446: Pattern Recognition and Machine Learning Spring 2005
Midterm Exam
March 18, 2005
This is a closed book exam. Everything you need in order to solve the problems is
supplied in the body of this exam.
The exam ends at 1:45 pm. It contains 5 problems. You have 75 minutes to earn a total of
100 points. Answer each question in the space provided.
If you need more room, write on the back side of the paper and indicate that you have done
so.
Besides having the correct answer, being concise and clear is very important.
For full credit, you must show your work and explain your answers.
Good Luck!
Name:
Problem 1 (20 points):
Problem 2 (20 points):
Problem 3 (20 points):
Problem 4 (20 points):
Problem 5 (20 points):
Total (100 points):
1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff

Partial preview of the text

Download Pattern Recognition and Machine Learning Exam - Spring 2005 | CS 446 and more Exams Computer Science in PDF only on Docsity!

CS446: Pattern Recognition and Machine Learning Spring 2005

Midterm Exam

March 18, 2005

This is a closed book exam. Everything you need in order to solve the problems is supplied in the body of this exam.

The exam ends at 1:45 pm. It contains 5 problems. You have 75 minutes to earn a total of 100 points. Answer each question in the space provided.

If you need more room, write on the back side of the paper and indicate that you have done so.

Besides having the correct answer, being concise and clear is very important. For full credit, you must show your work and explain your answers.

Good Luck!

Name:

Problem 1 (20 points): Problem 2 (20 points): Problem 3 (20 points): Problem 4 (20 points): Problem 5 (20 points): Total (100 points):

Problem 1 [Decision Trees - 20 points]

You are given a collection of data points S describing 8 students furiously studying for an exam. Each student has three observable attributes, and each is either focused on their studies or not. The label is IsFocused.

AmountOfSleep IsInterested HasBreakPlans IsFocused

1 Not Enough Yes No Yes 2 Too Much Yes No Yes 3 None Yes No No 4 Not Enough Yes No Yes 5 None No Yes No 6 Too Much No Yes No 7 Not Enough No No No 8 Not Enough Yes No Yes

(a) [5] What is the entropy of the data?

What is the entropy of the attribute AmountOfSleep?

(b) [5] Compute Gain(S, HasBreakPlans). (If needed, see the back page for formulas.)

Problem 2 [Boosting - 20 points] In this problem you will run AdaBoost. [Please consult the formula sheet for the definitions of α and D] Suppose you have two weak learners, w 0 and w 1 , and a set of 17 points. Your initial distribution D 0 is the uniform distribution.

(a) [12] You find that w 0 makes one mistake while w 1 makes four mistakes.

  • Choose which learner w 0 or w 1 will AdaBoost use in the first round.
  • Compute the weight α 0
  • Compute the distribution D 1. Specify the weight of D 1 on examples on which h 0 made a mistake and the weight on examples on which h 0 was correct.

(b) [8] Write (and explain your notation)

(1) an expression for the error of an individual AdaBoost weak learner in the ith round.

(2) an expression for the global error of the AdaBoost hypothesis.

How does the global error of the hypothesis behave in later rounds of Adaboost?

How does the weighted training error of the individual weak learners behave in later rounds?

(c) [4] Give an order of magnitude bound on the number of mistakes Winnow will make when learning f.

(d) [8] We define a set of concepts H = {sgn(ax^2 + bx + c)|a, b, c ∈ R}, where sgn(z) is 1 when z is positive, and 0 otherwise. What is the VC dimension of H? Prove your claim.

Problem 4 [On-Line Learning and PAC Learning]

In this problem you will define and explain the difference between two of the learning frameworks we discussed in class and show that, in some sense, one framework is stronger than the other.

(a) [4] You are given an algorithm B that has a mistake bound of mb when learning functions in the class C. Give a precise definition of the above statement, that “mb is the mistake bound of B when learning functions in C”.

(b) [4] Give a definition of the following statement: The class C is PAC learnable, and mp = m(≤, δ) is the number of examples required to guarantee (≤, δ) behavior.

empty page

Problem 5 [Kernel Perceptron and Multi Class Classification]

In this problem you will use the Kernel Perceptron algorithm in order to solve the multi-class classification problem, and then analyze its time complexity as a function of the number of examples available and the number of class labels. Assume you are given a collection of m labeled examples, {(x 1 , b 1 )}mi=1, with bi ∈ { 0 , 1 }. Recall that the Kernel perceptron algorithm is a learning algorithm that learns perceptron via the example based representation. In the notation used in class, the hypothesis used by the algorithm is:

f (x) =

∑ z∈M

S(z)K(x, z).

We will assume a linear kernel, K(x, z) = x · z.

(a) [5] Write explicitly the kernel perceptron algorithm defined above. Describe its operation in the Training stage and in the Evaluation (Test) stage. Write an expression for the worst case time complexity of learning as a function of the number m of examples provided.

(c) [5] Consider the same multi-class classification problem as in [b] above.

Suggest a different learning model which uses the Boolean learner discussed above in order to learn the multi-class classification. Specifically, in this part we will consider the all-vs-all model, in which you learn one classifier for each pair of class labels.

  • Explain how you train classifiers in this model. Specifically, explain what examples are presented to each classifier and how are they labeled.
  • Explain how you evaluate classifiers in this model, given new data that is not labeled.

(d) [5] For each of the multi-class classification in [b] and [c] above, write down the worst case time complexity of training the multi-class classifiers, as a function of the number of examples given, m, and the number of classes k. In each case, take into account the number of Boolean classifiers used, the number of examples each of them is being trained on, and the complexity of training each Boolean classifier, derived in [a]. Derive a conclusion as to which paradigm is better for the algorithm used here, and discuss why.