�Review of the key concepts of session no. 19�
1
Decision Trees
2
Decision Trees
3
Use of Decision Tree in Machine Learning
Decision Trees
4
Key Components of a Decision Tree:
Decision Trees
5
Decision Trees
Galgotias University
6
Learning Activity 1�Pen and Paper�
7
Sample Cricket Dataset for Decision Tree
Match_Type | Toss_Won | Bat_First | Wickets Lost | Result |
ODI | Yes | Yes | Few | Win |
T20 | No | No | Many | Lose |
ODI | Yes | No | Few | Win |
T20 | Yes | Yes | Few | Win |
ODI | No | No | Many | Lose |
T20 | No | Yes | Many | Lose |
Learning Activity 1�Pen and Paper�
8
Step | Description |
1 | Start with the full dataset (6 rows) |
2 | Calculate entropy of the target variable |
3 | For each attribute, calculate Information Gain |
4 | Choose Wickets_Lost (highest IG = 1.0) |
5 | Split data; both resulting branches are pure |
6 | Final tree is complete |
Learning Activity 1�Pen and Paper�
9
Learning Activity 1�Pen and Paper�
10
Learning Activity �Pen and Paper�
11
Gini Impurity
Learning Activity �Pen and Paper�
12
Gini Impurity
Answer:
Learning Activity �Pen and Paper�
13
Regression Task
Learning Activity �Pen and Paper�
14
Regression Task
Applications of Decision Trees��
15
Learning Activity �Pen and Paper�
16
Sample Student Dataset for Decision Tree
Study_Hours | Attendance | Marks_Category | Result |
High | Good | High | Pass |
Low | Poor | Low | Fail |
Medium | Good | Medium | Pass |
Low | Good | Low | Fail |
High | Poor | Medium | Pass |
Medium | Poor | Low | Fail |
High | Good | Medium | Pass |
Learning Activity �Pen and Paper�
17
Sample Student Dataset for Decision Tree
Calculate the following metrics for your dataset:
Summary
Galgotias University
18
19
Ensure attainment of LOs in alignment to the learning activities: outcomes (
Outcome 2:
Interpret real-world data using descriptive statistics.
.
Outcome 1:
Students will be able to describe what a Decision Tree is and how it is used to make decisions in classification problems.
Outcome 2:
Students will be able to solve simple classification problems by building and using a Decision Tree.
��Discussion on the post session activities��
Galgotias University
20
Activity: create a decision tree for given dataset
21
Information to next topic of the course
���
Review and Reflection from students
22