decision tree
play

Decision Tree Mahdi Roozbahani Lecturer, Computational Science and - PowerPoint PPT Presentation

Class Website CX4242: Decision Tree Mahdi Roozbahani Lecturer, Computational Science and Engineering, Georgia Tech These slides are adopted from Polo, Andrew w. Moore, and Vivek Srikumar 2 1 Visual Introduction to Decision Tree


  1. Class Website CX4242: Decision Tree Mahdi Roozbahani Lecturer, Computational Science and Engineering, Georgia Tech These slides are adopted from Polo, Andrew w. Moore, and Vivek Srikumar

  2. 𝑌 2 𝑌 1

  3. Visual Introduction to Decision Tree Building a tree to distinguish homes in New York from homes in San Francisco 3

  4. Decision Tree: Example (2) Will I play tennis today? 4

  5. Decision trees (DT) Outlook? The classifier: f T (x) : majority class in the leaf in the tree T containing x Model parameters: The tree structure and size 5

  6. Decision trees Pieces: 1. Find the best attribute to split on 2. Find the best split on the chosen attribute 3. Decide on when to stop splitting 6

  7. Categorical or Discrete attributes Label

  8. Attribute

  9. Continuous attributes

  10. Test data

  11. Information Content Coin flip Entropy ~ Uncertainty Which coin will give us the purest information? Lower uncertainty, higher information gain

  12. different

  13. What will happen if a tree is too large? Overfitting High variance Instability in predicting test data

  14. How to avoid overfitting? • Acquire more training data • Remove irrelevant attributes (manual process – not always possible) • Grow full tree, then post-prune • Ensemble learning

  15. Reduced-Error Pruning Split data into training and validation sets Grow tree based on training set Do until further pruning is harmful: 1. Evaluate impact on validation set of pruning each possible node (plus those below it) 2. Greedily remove the node that most improves validation set accuracy

  16. How to decide to remove it a node using pruning • Pruning of the decision tree is done by replacing a whole subtree by a leaf node. • The replacement takes place if a decision rule establishes that the expected error rate in the subtree is greater than in the single leaf.

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend