09-decision_trees - Decision Tree Example BigTip great Food...

Info icon This preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
1 Foundations of Artificial Intelligence Decision Tree Learning CS472 – Fall 2007 Thorsten Joachims Decision Tree Example: BigTip Food Price Speedy no yes no no yes great mediocre yikes yes no adequate high Food (3) Chat (2) Speedy (2) Price (2) Bar (2) BigTip 1 great yes yes adequate no yes 2 great no yes adequate no yes 3 mediocre yes no high no no 4 great yes yes adequate yes yes Top-Down Induction of DT (simplified) Training Data: TDIDF(D,c def ) IF(all examples in D have same class c) Return leaf with class c (or class c def , if D is empty) ELSE IF(no attributes left to test) Return leaf with class c of majority in D ELSE Pick A as the “best” decision attribute for next node FOR each value v i of A create a new descendent of node • Subtree t i for v i is TDIDT(D i ,c def ) RETURN tree with A as root and t i as subtrees } v value has x of A attribute : D y) , x {( D i i r r = )} y , x ( , ), y , x {( D n n 1 1 r r = Example: Text Classification Task: Learn rule that classifies Reuters Business News Class +: “Corporate Acquisitions” Class -: Other articles 2000 training instances Representation:
Image of page 1

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

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern