Question: Suppose you are given the following set of data with four input variables Quiz1, Quiz2, Midterm1, and Midterm2
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Question: Suppose you are given the following set of data with four input variables Quiz1, Quiz2, Midterm1, and Midterm2
Question: Suppose you are given the following set of data with four input variables Quiz1, Quiz2, Midterm1, and Midterm2. And a single Boolean output variable Result. The value of Midterm1 and Midterm2 are High (if grade >12). Avg (7<grade<=12) and Low (grade<=7). Also Quiz1 and Quiz2 values are High (4<= grade<=5), Avg (2<= grade<=3), and Low (0<= grade<=1). Assume we are using a Decision Tree classifier to predict the value of Result from the values of the input variables. Quiz 2 Midterm 1 Midterm 2 Result Quiz 1 H H H H Passed A A L A Failed A H H A Passed H H A H Passed H A A A Passed L A A A Failed A A H L Failed H A A H Passed A A A A Failed H H H H Passed H A A A Passed A Passed L A Passed Н H H Passed A A Failed A H A Failed A A A Failed H H L Failed A A H Passed L L L Failed 1. Compute the entropy of the sample (1 2. Give the value of the highest information gain (1 pt) 3. Give the root of the corresponding decision tree (4 pts) 4. Given the marks you earned in Quiz1, Quiz2, Midterm1 and Midterm 2, as (H.A and L) and by using tree classifier and specify the predicted Result. (4 pts) Note: suppose that you grade of quiz2 = Quiz1. Your Marks: Quiz1: ...…..... Quiz2: ...... Midterm1: Midterm2: Answer: HAE H Α _HHHAAH AHL Η А А Η