



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Assignment; Class: Machine Learning; Subject: Computer Science; University: University of Illinois - Urbana-Champaign; Term: Unknown 1989;
Typology: Assignments
1 / 5
This page cannot be seen from the preview
Don't miss anything!




(a) ¬A ∨ ¬B ∨ C [3 points] (b) A ∧ (¬B ∨ C) [3 points] (c) (A ⊕ B) ∨ (C ∧ D) [4 points]
(a) Let Dk be the class of monotone k-disjunctions (disjunction on k of the n variables) over (x 1 , x 2 ,... , xn). State the size of the smallest possible consistent decision tree for Dk in terms of n and k. Describe the shape of the resulting tree. [3 points] (b) Let Ck be the class of monotone k-conjunctions (conjunction on k of the n variables) over (x 1 , x 2 ,... , xn). State the size of the smallest possible consistent decision tree for Ck in terms of n and k. Describe the shape of the resulting tree. [3 points] (c) Let Pk be the class of k-parity functions (parity function on k of the n variables) over (x 1 , x 2 ,... , xn). The (odd) parity function evaluates to 1 if there are an odd number of 1’s in the feature and evaluates to 0 if there are an even number of 1’s in the feature vector. State the size of the smallest possible consistent decision tree for Pk in terms of n and k. [3 points] (d) What do these results imply about the application of decision tree learning for learning functions in Dk, Ck, and Pk? [6 points]
(You can automate your runs however you like, this is just FYI) http://www.dartmouth.edu/∼rc/classes/ksh/print pages.shtml
It is sufficient to present your decision tree in this fashion:
feature 0 == x feature 1 == y feature 2 == z class = + feature 2 != z class = - feature 1 != y class = + feature 0 != x feature 1 == r class = + feature 1 != r class = -
(Of course, use more descriptive feature names here so your output is comprehensible.)
Your routine for testing the accuracy of a decision tree should print the results in the following form.
Test Cases True False
This says that:
Finally, report the error rate. The error rate is the sum of the errors (here, 30 + 5) divided by the total number of examples (here, 150), in this case 23%.
You must include the following in your report: