hmk2solstud2 - Nicholas Trombetta CSE352: Artificial...

Info iconThis preview shows pages 1–8. Sign up to view the full content.

View Full Document Right Arrow Icon
Nicholas Trombetta CSE352: Artificial Intelligence HW 2 SOLUTIONS
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
_______________PROBLEM 1_______________ Tree 1: root attribute = Credit_rating Figure 1- Training Data Split by Credit_Rating ________________________________________________________________________ Figure 2 - Majority Voting applied to Credit=Fair
Background image of page 2
Figure 3 - Right subtree split by Age attribute ________________________________________________________________________ Figure 4 – Tree1 COMPLETE
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Tree 2: root attribute = Income ________________________________________________________________________ Figure 5 - Training Data split by Income ________________________________________________________________________ Figure 6 - Left node split by Credit attribute
Background image of page 4
Figure 7 - Right Child of Credit split by Age Figure 8 - Income=Medium node split by Age
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Figure 9 - Middle path of Tree2 computed ________________________________________________________________________ Figure 10 - Tree2 COMPLETE
Background image of page 6
Rules Determined by Tree1 1. IF Credit =" Fair " THEN Buys =" YES " ________________________________________________________________________ 2. IF Credit =" Excellent " AND Age =" <=30 " AND Student ="No" THEN Buys =" NO " ________________________________________________________________________ 3. IF Credit =" Excellent " AND Age =" <=30 " AND Student ="Yes" THEN Buys =" YES " ________________________________________________________________________ 4. IF Credit =" Excellent " AND Age =" 31. ..40 " THEN Buys =" YES " ________________________________________________________________________ 5. IF Credit =" Excellent " AND Age =" >40 " THEN Buys =" NO " Rules Determined by Tree2 1. IF Income =" Low " AND Credit =" Fair " THEN Buys =" YES " ________________________________________________________________________ 2. IF Income =" Low " AND Credit =" Excellent " AND Age =" 31. ..40 " THEN Buys =" YES " ________________________________________________________________________ 3. IF Income =" Low " AND Credit =" Excellent " AND Age =" >40 " THEN Buys =" NO " ________________________________________________________________________ 4. IF Income =" Medium " AND Age =" <=30 " AND Student =" No " THEN Buys =" NO " ________________________________________________________________________ 5. IF Income =" Medium " AND Age =" <=30 " AND Student =" Yes " THEN Buys =" YES " 6. IF
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 8
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 01/25/2012 for the course CSE 352 taught by Professor Wasilewska,a during the Fall '08 term at SUNY Stony Brook.

Page1 / 18

hmk2solstud2 - Nicholas Trombetta CSE352: Artificial...

This preview shows document pages 1 - 8. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online