11/10/2022
What is Decision Tree? (Supervised Learning)
It is a tree-structured classifier, where internal nodes represent the features of a dataset, branches
Decision Tree Classifier
represent the decision rules and each leaf node represents the label.
Dr. Muhammad Shoaib Farooq
Decision Tree (Problem Solving? Decision Tree (Problem Solving?
11/10/2022
Decision Tree (Problem Solving? Decision Tree (Important Terms)?
Decision Tree (Important Terms)? Decision Tree (Important Terms)?
11/10/2022
Decision Tree (Important Terms)? Decision Tree (Important Terms)?
Decision Tree (Important Terms)? How does a Decision Tree work?
11/10/2022
How does a Decision Tree work? How does a Decision Tree work?
How does a Decision Tree work? How does a Decision Tree work?
11/10/2022
How does a Decision Tree work? How does a Decision Tree work?
How does a Decision Tree work? How does a Decision Tree work?
11/10/2022
How does a Decision Tree work? How does a Decision Tree work?
How does a Decision Tree work? How does a Decision Tree work?
11/10/2022
How does a Decision Tree work? How does a Decision Tree work?
How does a Decision Tree work? How does a Decision Tree work?
11/10/2022
11/10/2022
Decision Tree
(Example)
Find the attribute with maximum
information gain.
Calculate information gain for each
attribute.
Attribute with max information gain will
be considered as root node of the tree.
For this, we need to calculate entropy for
entire data set as well as for each
attribute.
Entropy = - (+ve/total) log (+ve/total) – (-ve/total) log (-ve/total)
Entropy is measure of randomness or
disorder
0 means fully random, 1 means no
randomness
11/10/2022
14
11/10/2022
11/10/2022
11/10/2022