SlideShare a Scribd company logo
+
Outlines
1. Decision Tree
2. DT-Example
3. DT Building – Ex. Playing Tennis
4. DT Building – Thinking!
5. DT Building – Entropy
6. DT Building – Purity
7. Algorithm for decision tree learning
8. Choose an attribute to partition data
9. Information theory
10. Information Gain
11. Differences between ID3 and C4.5
2
3
1. Decision Trees
Decision Trees
are a type of Supervised ML
(that is you explain what the
input is and what the
corresponding output is in the
training data)
where the data is continuously
split according to a certain
parameter.
The decision tree is of particular importance in analyzing decision
issues that contain a series of decisions or a series of cases of the
occurring nature.
4
2. Decision Tree Example
Body
Temperature
Give Birth
Non-mammals
Non-mammalsMammals
warm
no
cold
yes
5
2. DT-Example (Cont.)
Types of Nodes
Root Node Internal
Node
Leaf Node
that has no incoming
edges and zero or
more outgoing
edges.
each of which has
exactly one incoming
edge and two or more
outgoing edges (circle
symbol).
each of which has
exactly one
incoming edge and
no outgoing edges
(rectangle symbol).
Body
Temperature
Give Birth
Mammals
Non-mammals
Non-mammals
6
• Each leaf node is assigned a class
label.
• The non-terminal nodes (root and
other internal nodes) contain
attribute test conditions to
separate records that have
different characteristics.
• For example, the root node
shown in fig. uses the attribute
Body Temp to separate warm-
blooded from cold-blooded
vertebrates.
Class Label
Test Condition
2. DT-Example (Cont.)
7
3. DT Building – Ex. Playing Tennis
Playing
Or
Not
8
Playing
Or
Not
3. DT Building – Ex. Playing Tennis
9
Playing
Or
Not
Outlook
sunny
overcast
rain
Temp
hot
mild
cool
Humidity
High
Normal
Wind
Weak
Strong
3. DT Building – Ex. Playing Tennis
10
How we can get
DT for this example?
outlook
Humidity
YesNo
sunny
normal
rain
high
Wind
Yes
weak
Yes
No
strong
overcast
3. DT Building – Ex. Playing Tennis
11
4. DT Building – Thinking!
Question 1
Yes No
%50 - %50
Question 2
Yes No
%50 - %50
Temp:
Hot?
Outlook:
sunny?
12
4. DT Building – Thinking! (Cont.)
Question 3
Yes No
Question 4
Yes No
%50 - %50 %50 - %50
%100%100 %50 - %50 %50 - %50
13
5. DT Building – Entropy
Entropy: 𝐸 𝑆 = −𝑃(+) 𝑙𝑜𝑔2 𝑃(+) −𝑃(−) 𝑙𝑜𝑔2 𝑃(−) bits
Or Entropy: 𝐸 𝑆 = − σ𝑖=1
𝑘
𝑝𝑖 𝑙𝑜𝑔2 (𝑝𝑖)
- 𝑆 : subset of training examples
- 𝑃(+) 𝑎𝑛𝑑 𝑃(−): # of positive and # of negative examples in 𝑆
• Interpretation : assume item 𝑋 belongs to 𝑆
- How many bits need to tell if 𝑋 positive or negative
Entropy:
• it relates to machine learning,
• is a measure of the randomness in the information
being processed.
14
0 ≤ 𝐸𝑛𝑡𝑟𝑜𝑝𝑦 ≤ 1
5. DT Building – Entropy (Cont.)
1 2 3
4 5 6
• Impure (4 yes / 4 no)
• E 𝑆 = −
4
8
𝑙𝑜𝑔2
4
8
−
4
8
𝑙𝑜𝑔2
4
8
= 1
• Pure (8 yes / 0 no)
• E 𝑆 = −
8
8
𝑙𝑜𝑔2
8
8
−
0
8
𝑙𝑜𝑔2
0
8
= 0
15
5. DT Building – Entropy (Cont.)
1 4
• Impure (4 yes / 4 no)
• E 𝑆 = −
4
8
𝑙𝑜𝑔2
4
8
−
4
8
𝑙𝑜𝑔2
4
8
= 1
• Pure (8 yes / 0 no)
• E 𝑆 = −
8
8
𝑙𝑜𝑔2
8
8
−
0
8
𝑙𝑜𝑔2
0
8
= 0
16
6. DT Building – Purity
The decision to split at each node is made according to the
metric called purity.
• A node is 100% impure when a node is split evenly 50/50 and
• A node is 100% pure when all of its data belongs to a single class.
• Impure (4 yes / 4 no)
• E 𝑆 = −
4
8
𝑙𝑜𝑔2
4
8
−
4
8
𝑙𝑜𝑔2
4
8
= 1
• Pure (8 yes / 0 no)
• E 𝑆 = −
8
8
𝑙𝑜𝑔2
8
8
−
0
8
𝑙𝑜𝑔2
0
8
= 0
17
Playing
Or
Not
Outlook
sunny
overcast
rain
Temp
hot
mild
cool
Humidity
High
Normal
Wind
Weak
Strong
3. DT Building – Ex. Playing Tennis (Cont.)
18
𝐸 𝑃𝑙𝑎𝑦𝑖𝑛𝑔 = −
9
14
𝑙𝑜𝑔2
9
14
−
5
14
𝑙𝑜𝑔2
5
14
= 0.40978 + 0.53051
= 0.94029
No
Play Play
Playing
Or
Not
3. DT Building – Ex. Playing Tennis (Cont.)
19
Wind
weak strong
𝐸 𝑃𝑙𝑎𝑦𝑖𝑛𝑔 = −
9
14
𝑙𝑜𝑔2
9
14
−
5
14
𝑙𝑜𝑔2
5
14
= 0.40978 + 0.53051
= 0.94029
𝐸 𝑤𝑒𝑎𝑘 = −
6
8
𝑙𝑜𝑔2
6
8
−
2
8
𝑙𝑜𝑔2
2
8
= 0.811
𝐸 𝑠𝑡𝑟𝑜𝑛𝑔 = −
3
6
𝑙𝑜𝑔2
3
6
−
3
6
𝑙𝑜𝑔2
3
6
= 1
No
Play Play
3. DT Building – Ex. Playing Tennis (Cont.)
20
Humidity
high normal
𝐸 𝑃𝑙𝑎𝑦𝑖𝑛𝑔 = −
9
14
𝑙𝑜𝑔2
9
14
−
5
14
𝑙𝑜𝑔2
5
14
= 0.40978 + 0.53051
= 0.94029
𝐸 ℎ𝑖𝑔ℎ = −
3
7
𝑙𝑜𝑔2
3
7
−
4
7
𝑙𝑜𝑔2
4
7
= 0.9854
𝐸 𝑛𝑜𝑟𝑚𝑎𝑙 = −
6
7
𝑙𝑜𝑔2
6
7
−
1
7
𝑙𝑜𝑔2
1
4
= 0.5921
3. DT Building – Ex. Playing Tennis (Cont.)
21
Temp
hot cool
𝐸 𝑃𝑙𝑎𝑦𝑖𝑛𝑔 = −
9
14
𝑙𝑜𝑔2
9
14
−
5
14
𝑙𝑜𝑔2
5
14
= 0.40978 + 0.53051
= 0.94029
𝐸 ℎ𝑜𝑡 = −
2
4
𝑙𝑜𝑔2
2
4
−
2
4
𝑙𝑜𝑔2
2
4
= 1
𝐸 𝑚𝑖𝑙𝑑 = −
4
6
𝑙𝑜𝑔2
4
6
−
2
6
𝑙𝑜𝑔2
2
6
= 0.9185
mild
𝐸 𝑐𝑜𝑜𝑙 = −
3
4
𝑙𝑜𝑔2
3
4
−
1
4
𝑙𝑜𝑔2
1
4
= 0.8114
3. DT Building – Ex. Playing Tennis (Cont.)
22
Outlook
sunny rain
𝐸 𝑃𝑙𝑎𝑦𝑖𝑛𝑔 = −
9
14
𝑙𝑜𝑔2
9
14
−
5
14
𝑙𝑜𝑔2
5
14
= 0.40978 + 0.53051
= 0.94029
𝐸 𝑠𝑢𝑛𝑛𝑦 = −
2
5
𝑙𝑜𝑔2
2
5
−
3
5
𝑙𝑜𝑔2
3
5
= 0.97115
𝐸 𝑜𝑣𝑒𝑟𝑐𝑎𝑠𝑡 = 0
overcast
𝐸 𝑟𝑎𝑖𝑛 = −
3
5
𝑙𝑜𝑔2
3
5
−
2
5
𝑙𝑜𝑔2
2
5
= 0.97115
3. DT Building – Ex. Playing Tennis (Cont.)
23
7. Algorithm for decision tree learning
 Basic algorithm (a greedy divide-and-conquer algorithm)
 Assume attributes are categorical now (continuous attributes
can be handled too)
 Tree is constructed in a top-down recursive manner
 At start, all the training examples are at the root
 Examples are partitioned recursively based on selected
attributes
 Attributes are selected on the basis of an impurity function
(e.g., information gain)
 Conditions for stopping partitioning
 All examples for a given node belong to the same class
 There are no remaining attributes for further partitioning –
majority class is the leaf
 There are no examples left
24
8. Choose an attribute to partition data
 The key to building a decision tree - which attribute to
choose in order to branch.
 The objective is to reduce impurity or uncertainty in
data as much as possible.
 A subset of data is pure if all instances belong to the
same class.
 The heuristic in C4.5 is to choose the attribute with the
maximum Information Gain or Gain Ratio based on
information theory.
25
9. Information theory
 Information theory provides a mathematical basis for measuring the
information content.
 To understand the notion of information, think about it as providing
the answer to a question, for example, whether a coin will come up
heads.
 If one already has a good guess about the answer, then the actual
answer is less informative.
 If one already knows that the coin is rigged so that it will come
with heads with probability 0.99, then a message (advanced
information) about the actual outcome of a flip is worth less than
it would be for a honest coin (50-50).
26
10. Information Gain
 Given a set of examples 𝐷, we first compute its entropy:
 If we make attribute 𝐴𝑖 with 𝑣 values, the root of the
current tree, this will partition 𝐷 into 𝑣 subsets
𝐷1, 𝐷2 … , 𝐷𝑣 . The expected entropy if 𝐴𝑖 is used as the
current root:
𝑒𝑛𝑡𝑟𝑜𝑝𝑦 𝐷 = − σ 𝑗=1
𝑐
P 𝑐𝑗 𝑙𝑜𝑔2 P(𝑐𝑗)
𝑒𝑛𝑡𝑟𝑜𝑝𝑦 𝐴 𝑖
𝐷 = ෍
𝑗=1
𝑣
𝐷𝑗
𝐷
× 𝑒𝑛𝑡𝑟𝑜𝑝𝑦 (𝐷𝑗)
27
10. Information Gain (Cont.)
𝑔𝑎𝑖𝑛 𝐷, 𝐴𝑖 = 𝑒𝑛𝑡𝑟𝑜𝑝𝑦 𝐷 − 𝑒𝑛𝑡𝑟𝑜𝑝𝑦 𝐴 𝑖
(𝐷)
 Information gained by selecting attribute 𝐴𝑖 to
branch or to partition the data is
 We choose the attribute with the highest gain
to branch/split the current tree.
𝑤ℎ𝑒𝑟𝑒;
𝑒𝑛𝑡𝑟𝑜𝑝𝑦 𝐴 𝑖
𝐷 = ෍
𝑗=1
𝑣
𝐷𝑗
𝐷
× 𝑒𝑛𝑡𝑟𝑜𝑝𝑦 (𝐷𝑗)
28
Wind
weak strong
𝐸 𝑃𝑙𝑎𝑦𝑖𝑛𝑔 = 0.94029
𝐸 𝑤𝑒𝑎𝑘 = 0.811 𝐸 𝑠𝑡𝑟𝑜𝑛𝑔 = 1
G 𝑆 , 𝑄 = 𝐸 𝑆 − ෍
𝑖=1
𝑘
𝑝𝑖 × 𝐸(𝑆, 𝑄𝑖)
G 𝑝𝑙𝑎𝑦 , 𝑤𝑖𝑛𝑑 = 0.94029 −
8
14
× 0.811 −
6
14
× 1 = 0.04829
3. DT Building – Ex. Playing Tennis (Cont.)
29
Humidity
high normal
𝐸 𝑃𝑙𝑎𝑦𝑖𝑛𝑔 = 0.94029
𝐸 ℎ𝑖𝑔ℎ = 0.9854 𝐸 𝑛𝑜𝑟𝑚𝑎𝑙 = 0.5921
G 𝑆 , 𝑄 = 𝐸 𝑆 − ෍
𝑖=1
𝑘
𝑝𝑖 × 𝐸(𝑆, 𝑄𝑖)
G 𝑝𝑙𝑎𝑦 , 𝐻𝑢𝑚𝑖𝑑𝑖𝑡𝑦 = 0.94029 −
7
14
× 0.9854 −
7
14
× 0.5921 = 0.15415
3. DT Building – Ex. Playing Tennis (Cont.)
30
Temp
hot cool
𝐸 𝑃𝑙𝑎𝑦𝑖𝑛𝑔 = 0.94029
𝐸 ℎ𝑜𝑡 = 1
𝐸 𝑚𝑖𝑙𝑑 = 0.9185
mild
𝐸 𝑐𝑜𝑜𝑙 = 0.8114
G 𝑆 , 𝑄 = 𝐸 𝑆 − ෍
𝑖=1
𝑘
𝑝𝑖 × 𝐸(𝑆, 𝑄𝑖)
G 𝑝𝑙𝑎𝑦 , 𝑡𝑒𝑚𝑝 = 0.94029 −
4
14
× 1 −
6
14
× 0.9185 −
4
14
× 0.8114 = 0.02919
3. DT Building – Ex. Playing Tennis (Cont.)
31
Outlook
sunny rain
𝐸 𝑃𝑙𝑎𝑦𝑖𝑛𝑔 = 0.94029
𝐸 𝑠𝑢𝑛𝑛𝑦 = 0.97115
𝐸 𝑜𝑣𝑒𝑟𝑐𝑎𝑠𝑡 = 0
overcast
𝐸 𝑟𝑎𝑖𝑛 = 0.97115
G 𝑆 , 𝑄 = 𝐸 𝑆 − ෍
𝑖=1
𝑘
𝑝𝑖 × 𝐸(𝑆, 𝑄𝑖)
G 𝑝𝑙𝑎𝑦 , 𝑜𝑢𝑡𝑙𝑜𝑜𝑘 = 0.94029 −
5
14
× 0.97115 −
4
14
× 0 −
5
14
× 0.97115 = 0.24669
3. DT Building – Ex. Playing Tennis (Cont.)
32
G 𝑝𝑙𝑎𝑦 , 𝑜𝑢𝑡𝑙𝑜𝑜𝑘 = 0.24669
G 𝑝𝑙𝑎𝑦 , 𝑡𝑒𝑚𝑝 = 0.02919
G 𝑝𝑙𝑎𝑦 , 𝐻𝑢𝑚𝑖𝑑𝑖𝑡𝑦 = 0.15415
G 𝑝𝑙𝑎𝑦 , 𝑤𝑖𝑛𝑑 = 0.04829
Playing
Or
Not
3. DT Building – Ex. Playing Tennis (Cont.)
33
G 𝑝𝑙𝑎𝑦 , 𝑜𝑢𝑡𝑙𝑜𝑜𝑘 = 0.24669
Playing
Or
Not
outlook
sunny rain
Yes
overcast
3. DT Building – Ex. Playing Tennis (Cont.)
34
Playing
Or
Not
3. DT Building – Ex. Playing Tennis (Cont.)
35
𝐸 𝑠𝑢𝑛𝑛𝑦 = −
3
5
𝑙𝑜𝑔2
3
5
−
2
5
𝑙𝑜𝑔2
2
5
= 0.444 + 0.532
= 0.976
No
Play Play
Playing
Or
Not
Sunny Set
3. DT Building – Ex. Playing Tennis (Cont.)
36
Wind
weak strong
𝐸 𝑤𝑒𝑎𝑘 = −
1
3
𝑙𝑜𝑔2
1
3
−
2
3
𝑙𝑜𝑔2
2
3
= 0.92
𝐸 𝑠𝑡𝑟𝑜𝑛𝑔 = 1 (𝑖𝑚𝑝𝑢𝑟𝑒 𝑛𝑜𝑑𝑒)
No
Play Play
𝐸 𝑠𝑢𝑛𝑛𝑦 = −
3
5
𝑙𝑜𝑔2
3
5
−
2
5
𝑙𝑜𝑔2
2
5
= 0.444 + 0.532
= 0.976
G 𝑠𝑢𝑛𝑛𝑦 , 𝑤𝑖𝑛𝑑 = 0.976 −
3
5
× 0.92 −
2
5
× 1 = 0.024
3. DT Building – Ex. Playing Tennis (Cont.)
37
𝐸 ℎ𝑖𝑔ℎ = 0 (𝑝𝑢𝑟𝑒 𝑛𝑜𝑑𝑒)
𝐸 𝑛𝑜𝑟𝑚𝑎𝑙 = 0 (pure node)
𝐸 𝑠𝑢𝑛𝑛𝑦 = −
3
5
𝑙𝑜𝑔2
3
5
−
2
5
𝑙𝑜𝑔2
2
5
= 0.444 + 0.532
= 0.976
Humidity
high normal
G 𝑠𝑢𝑛𝑛𝑦 , ℎ𝑢𝑚𝑖𝑑𝑖𝑡𝑦 = 0.976 −
3
5
× 0 −
2
5
× 0 = 0.976
3. DT Building – Ex. Playing Tennis (Cont.)
38
Temp
hot cool
𝐸 ℎ𝑜𝑡 = 0 (pure node)
𝐸 𝑚𝑖𝑙𝑑 = 1 (impure node
mild
𝐸 𝑐𝑜𝑜𝑙 = 0 (pure mode)
G 𝑠𝑢𝑛𝑛𝑦 , 𝑡𝑒𝑚𝑝 = 0.976 −
2
5
× 0 −
2
5
× 1 −
1
5
× 0 = 0.576
𝐸 𝑠𝑢𝑛𝑛𝑦 = −
3
5
𝑙𝑜𝑔2
3
5
−
2
5
𝑙𝑜𝑔2
2
5
= 0.444 + 0.532
= 0.976
3. DT Building – Ex. Playing Tennis (Cont.)
39
Playing
Or
Not
3. DT Building – Ex. Playing Tennis (Cont.)
40
𝐸 𝑟𝑎𝑖𝑛 = −
3
5
𝑙𝑜𝑔2
3
5
−
2
5
𝑙𝑜𝑔2
2
5
= 0.444 + 0.532
= 0.976
No
Play Play
Rain Set
Playing
Or
Not
3. DT Building – Ex. Playing Tennis (Cont.)
41
Wind
weak strong
𝐸 𝑤𝑒𝑎𝑘 = 0 (pure node)
No
Play Play
𝐸 𝑟𝑎𝑖𝑛 = −
3
5
𝑙𝑜𝑔2
3
5
−
2
5
𝑙𝑜𝑔2
2
5
= 0.444 + 0.532
= 0.976
G 𝑟𝑎𝑖𝑛 , 𝑤𝑖𝑛𝑑 = 0.976 −
3
5
× 0.92 −
2
5
× 0 = 0.424
𝐸 𝑠𝑡𝑟𝑜𝑛𝑔 = −
1
3
𝑙𝑜𝑔2
1
3
−
2
3
𝑙𝑜𝑔2
2
3
= 0.92
3. DT Building – Ex. Playing Tennis (Cont.)
42
𝐸 ℎ𝑖𝑔ℎ = 1 (𝑖𝑚𝑝𝑢𝑟𝑒 𝑛𝑜𝑑𝑒)
𝐸 𝑟𝑎𝑖𝑛 = −
3
5
𝑙𝑜𝑔2
3
5
−
2
5
𝑙𝑜𝑔2
2
5
= 0.444 + 0.532
= 0.976
Humidity
high normal
G 𝑟𝑎𝑖𝑛 , ℎ𝑢𝑚𝑖𝑑𝑖𝑡𝑦 = 0.976 −
3
5
× 0.92 −
2
5
× 1 = 0.024
𝐸 𝑛𝑜𝑟𝑚𝑎𝑙 = −
1
3
𝑙𝑜𝑔2
1
3
−
2
3
𝑙𝑜𝑔2
2
3
= 0.92
3. DT Building – Ex. Playing Tennis (Cont.)
43
Temp
No data
hot cool
𝐸 ℎ𝑜𝑡 = no data
mild
𝐸 𝑐𝑜𝑜𝑙 = 1 (impure node)
G 𝑟𝑎𝑖𝑛 , 𝑡𝑒𝑚𝑝 = 0.976 −
3
5
× 0.92 −
2
5
× 1 − 𝑛𝑜 𝑑𝑎𝑡𝑎 = 0.024
𝐸 𝑚𝑖𝑙𝑑 = −
1
3
𝑙𝑜𝑔2
1
3
−
2
3
𝑙𝑜𝑔2
2
3
= 0.92
𝐸 𝑟𝑎𝑖𝑛 = −
3
5
𝑙𝑜𝑔2
3
5
−
2
5
𝑙𝑜𝑔2
2
5
= 0.444 + 0.532
= 0.976
3. DT Building – Ex. Playing Tennis (Cont.)
44
G 𝑠𝑢𝑛𝑛𝑦 , 𝑤𝑖𝑛𝑑 =0.024
outlook
sunny rain
Yes
overcast
G 𝑠𝑢𝑛𝑛𝑦 , ℎ𝑢𝑚𝑖𝑑𝑖𝑡𝑦 = 0.976
G 𝑠𝑢𝑛𝑛𝑦 , 𝑡𝑒𝑚𝑝 =0.576
G 𝑟𝑎𝑖𝑛 , 𝑤𝑖𝑛𝑑 =0.424
G 𝑟𝑎𝑖𝑛 , ℎ𝑢𝑚𝑖𝑑𝑖𝑡𝑦 = 0.024
G 𝑟𝑎𝑖𝑛 , 𝑡𝑒𝑚𝑝 =0.024
3. DT Building – Ex. Playing Tennis (Cont.)
45
outlook
Humidity
YesNo
sunny
normal
rain
high
Yes
overcast
G 𝑟𝑎𝑖𝑛 , 𝑤𝑖𝑛𝑑 =0.424
G 𝑟𝑎𝑖𝑛 , 𝑡𝑒𝑚𝑝 =0.024
3. DT Building – Ex. Playing Tennis (Cont.)
46
outlook
Humidity
YesNo
sunny
normal
rain
high
Wind
Yes
weak
Yes
No
strong
overcast
3. DT Building – Ex. Playing Tennis (Cont.)
47
11. Differences between ID3 and C4.5
ID3 C4.5
Splitting
Criteria
Information
Gain
Ratio Gain
Attribute Type Handles only
categorical
value
Handles both
categorical &
numerical value
Missing Values Do not handle Handle

More Related Content

What's hot

1150 day 4
1150 day 41150 day 4
1150 day 4
Carol Defreese
 
0.5 Rational Expressions
0.5 Rational Expressions0.5 Rational Expressions
0.5 Rational Expressions
smiller5
 
Basic algebra for entrepreneurs
Basic algebra for entrepreneurs Basic algebra for entrepreneurs
Basic algebra for entrepreneurs
Dr. Trilok Kumar Jain
 
Web_Alg_Project
Web_Alg_ProjectWeb_Alg_Project
Web_Alg_Project
Giuseppe Filingeri
 
presentazione
presentazionepresentazione
presentazione
Giuseppe Filingeri
 
Notes - Polynomial Division
Notes - Polynomial DivisionNotes - Polynomial Division
Notes - Polynomial Division
Lori Rapp
 
Parabola
ParabolaParabola
Ijetr012013
Ijetr012013Ijetr012013
Ijetr012013
ER Publication.org
 
ملزمة الرياضيات للصف السادس التطبيقي الفصل الخامس المعادلات التفاضلية 2022
ملزمة الرياضيات للصف السادس التطبيقي الفصل الخامس المعادلات التفاضلية 2022 ملزمة الرياضيات للصف السادس التطبيقي الفصل الخامس المعادلات التفاضلية 2022
ملزمة الرياضيات للصف السادس التطبيقي الفصل الخامس المعادلات التفاضلية 2022
anasKhalaf4
 
Exercicios de integrais
Exercicios de integraisExercicios de integrais
Exercicios de integrais
Ribeij2
 
Greek logic and mathematics
Greek logic and mathematicsGreek logic and mathematics
Greek logic and mathematics
Bob Marcus
 
4 rules-of-fractions1640
4 rules-of-fractions16404 rules-of-fractions1640
4 rules-of-fractions1640
hardikkakadiya99
 
3.1 methods of division t
3.1 methods of division t3.1 methods of division t
3.1 methods of division t
math260
 
5 chap
5 chap5 chap
Matematika kalkulus
Matematika kalkulusMatematika kalkulus
Matematika kalkulus
Azhari_Rahman
 
Matematika kalkulus1
Matematika kalkulus1Matematika kalkulus1
Matematika kalkulus1
apentah12
 
Solution Manual : Chapter - 07 Exponential, Logarithmic and Inverse Trigonome...
Solution Manual : Chapter - 07 Exponential, Logarithmic and Inverse Trigonome...Solution Manual : Chapter - 07 Exponential, Logarithmic and Inverse Trigonome...
Solution Manual : Chapter - 07 Exponential, Logarithmic and Inverse Trigonome...
Hareem Aslam
 

What's hot (17)

1150 day 4
1150 day 41150 day 4
1150 day 4
 
0.5 Rational Expressions
0.5 Rational Expressions0.5 Rational Expressions
0.5 Rational Expressions
 
Basic algebra for entrepreneurs
Basic algebra for entrepreneurs Basic algebra for entrepreneurs
Basic algebra for entrepreneurs
 
Web_Alg_Project
Web_Alg_ProjectWeb_Alg_Project
Web_Alg_Project
 
presentazione
presentazionepresentazione
presentazione
 
Notes - Polynomial Division
Notes - Polynomial DivisionNotes - Polynomial Division
Notes - Polynomial Division
 
Parabola
ParabolaParabola
Parabola
 
Ijetr012013
Ijetr012013Ijetr012013
Ijetr012013
 
ملزمة الرياضيات للصف السادس التطبيقي الفصل الخامس المعادلات التفاضلية 2022
ملزمة الرياضيات للصف السادس التطبيقي الفصل الخامس المعادلات التفاضلية 2022 ملزمة الرياضيات للصف السادس التطبيقي الفصل الخامس المعادلات التفاضلية 2022
ملزمة الرياضيات للصف السادس التطبيقي الفصل الخامس المعادلات التفاضلية 2022
 
Exercicios de integrais
Exercicios de integraisExercicios de integrais
Exercicios de integrais
 
Greek logic and mathematics
Greek logic and mathematicsGreek logic and mathematics
Greek logic and mathematics
 
4 rules-of-fractions1640
4 rules-of-fractions16404 rules-of-fractions1640
4 rules-of-fractions1640
 
3.1 methods of division t
3.1 methods of division t3.1 methods of division t
3.1 methods of division t
 
5 chap
5 chap5 chap
5 chap
 
Matematika kalkulus
Matematika kalkulusMatematika kalkulus
Matematika kalkulus
 
Matematika kalkulus1
Matematika kalkulus1Matematika kalkulus1
Matematika kalkulus1
 
Solution Manual : Chapter - 07 Exponential, Logarithmic and Inverse Trigonome...
Solution Manual : Chapter - 07 Exponential, Logarithmic and Inverse Trigonome...Solution Manual : Chapter - 07 Exponential, Logarithmic and Inverse Trigonome...
Solution Manual : Chapter - 07 Exponential, Logarithmic and Inverse Trigonome...
 

Similar to Classification using decision tree in detail

"Induction of Decision Trees" @ Papers We Love Bucharest
"Induction of Decision Trees" @ Papers We Love Bucharest"Induction of Decision Trees" @ Papers We Love Bucharest
"Induction of Decision Trees" @ Papers We Love Bucharest
Stefan Adam
 
11.2 Arithmetic Sequences and Series
11.2 Arithmetic Sequences and Series11.2 Arithmetic Sequences and Series
11.2 Arithmetic Sequences and Series
smiller5
 
Decision Tree
Decision TreeDecision Tree
Decision Tree
Learnbay Datascience
 
LINEAR SYSTEMS
LINEAR SYSTEMSLINEAR SYSTEMS
LINEAR SYSTEMS
JazzieJao1
 
Recurrences
RecurrencesRecurrences
Recurrences
Ala' Mohammad
 
0.4 Factoring Polynomials
0.4 Factoring Polynomials0.4 Factoring Polynomials
0.4 Factoring Polynomials
smiller5
 
Contemporary communication systems 1st edition mesiya solutions manual
Contemporary communication systems 1st edition mesiya solutions manualContemporary communication systems 1st edition mesiya solutions manual
Contemporary communication systems 1st edition mesiya solutions manual
to2001
 
1.5 Factoring Polynomials
1.5 Factoring Polynomials1.5 Factoring Polynomials
1.5 Factoring Polynomials
smiller5
 
CMSC 56 | Lecture 8: Growth of Functions
CMSC 56 | Lecture 8: Growth of FunctionsCMSC 56 | Lecture 8: Growth of Functions
CMSC 56 | Lecture 8: Growth of Functions
allyn joy calcaben
 
0.3 Polynomials
0.3 Polynomials0.3 Polynomials
0.3 Polynomials
smiller5
 
Square roots, decimals & number system
Square roots, decimals & number systemSquare roots, decimals & number system
Square roots, decimals & number system
Dr. Trilok Kumar Jain
 
Square roots, decimals & number system
Square roots, decimals & number systemSquare roots, decimals & number system
Square roots, decimals & number system
Dr. Trilok Kumar Jain
 
Square roots, decimals & number system
Square roots, decimals & number systemSquare roots, decimals & number system
Square roots, decimals & number system
Dr. Trilok Kumar Jain
 
Unit-1 DAA_Notes.pdf
Unit-1 DAA_Notes.pdfUnit-1 DAA_Notes.pdf
Unit-1 DAA_Notes.pdf
AmayJaiswal4
 
Комплекс тоо цуврал хичээл-2
Комплекс тоо цуврал хичээл-2Комплекс тоо цуврал хичээл-2
Комплекс тоо цуврал хичээл-2
Март
 
Annie
AnnieAnnie
time_complexity_list_02_04_2024_22_pages.pdf
time_complexity_list_02_04_2024_22_pages.pdftime_complexity_list_02_04_2024_22_pages.pdf
time_complexity_list_02_04_2024_22_pages.pdf
SrinivasaReddyPolamR
 
Master method theorem
Master method theoremMaster method theorem
Master method theorem
Rajendran
 
Master method theorem
Master method theoremMaster method theorem
Master method theorem
Rajendran
 
2e. Pedagogy of Mathematics - Part II (Numbers and Sequence - Ex 2.5)
2e. Pedagogy of Mathematics -  Part II (Numbers and Sequence - Ex 2.5)2e. Pedagogy of Mathematics -  Part II (Numbers and Sequence - Ex 2.5)
2e. Pedagogy of Mathematics - Part II (Numbers and Sequence - Ex 2.5)
Dr. I. Uma Maheswari Maheswari
 

Similar to Classification using decision tree in detail (20)

"Induction of Decision Trees" @ Papers We Love Bucharest
"Induction of Decision Trees" @ Papers We Love Bucharest"Induction of Decision Trees" @ Papers We Love Bucharest
"Induction of Decision Trees" @ Papers We Love Bucharest
 
11.2 Arithmetic Sequences and Series
11.2 Arithmetic Sequences and Series11.2 Arithmetic Sequences and Series
11.2 Arithmetic Sequences and Series
 
Decision Tree
Decision TreeDecision Tree
Decision Tree
 
LINEAR SYSTEMS
LINEAR SYSTEMSLINEAR SYSTEMS
LINEAR SYSTEMS
 
Recurrences
RecurrencesRecurrences
Recurrences
 
0.4 Factoring Polynomials
0.4 Factoring Polynomials0.4 Factoring Polynomials
0.4 Factoring Polynomials
 
Contemporary communication systems 1st edition mesiya solutions manual
Contemporary communication systems 1st edition mesiya solutions manualContemporary communication systems 1st edition mesiya solutions manual
Contemporary communication systems 1st edition mesiya solutions manual
 
1.5 Factoring Polynomials
1.5 Factoring Polynomials1.5 Factoring Polynomials
1.5 Factoring Polynomials
 
CMSC 56 | Lecture 8: Growth of Functions
CMSC 56 | Lecture 8: Growth of FunctionsCMSC 56 | Lecture 8: Growth of Functions
CMSC 56 | Lecture 8: Growth of Functions
 
0.3 Polynomials
0.3 Polynomials0.3 Polynomials
0.3 Polynomials
 
Square roots, decimals & number system
Square roots, decimals & number systemSquare roots, decimals & number system
Square roots, decimals & number system
 
Square roots, decimals & number system
Square roots, decimals & number systemSquare roots, decimals & number system
Square roots, decimals & number system
 
Square roots, decimals & number system
Square roots, decimals & number systemSquare roots, decimals & number system
Square roots, decimals & number system
 
Unit-1 DAA_Notes.pdf
Unit-1 DAA_Notes.pdfUnit-1 DAA_Notes.pdf
Unit-1 DAA_Notes.pdf
 
Комплекс тоо цуврал хичээл-2
Комплекс тоо цуврал хичээл-2Комплекс тоо цуврал хичээл-2
Комплекс тоо цуврал хичээл-2
 
Annie
AnnieAnnie
Annie
 
time_complexity_list_02_04_2024_22_pages.pdf
time_complexity_list_02_04_2024_22_pages.pdftime_complexity_list_02_04_2024_22_pages.pdf
time_complexity_list_02_04_2024_22_pages.pdf
 
Master method theorem
Master method theoremMaster method theorem
Master method theorem
 
Master method theorem
Master method theoremMaster method theorem
Master method theorem
 
2e. Pedagogy of Mathematics - Part II (Numbers and Sequence - Ex 2.5)
2e. Pedagogy of Mathematics -  Part II (Numbers and Sequence - Ex 2.5)2e. Pedagogy of Mathematics -  Part II (Numbers and Sequence - Ex 2.5)
2e. Pedagogy of Mathematics - Part II (Numbers and Sequence - Ex 2.5)
 

More from Ramadan Babers, PhD

Part10 finance investment limitations of ratio analysis
Part10 finance investment limitations of ratio analysisPart10 finance investment limitations of ratio analysis
Part10 finance investment limitations of ratio analysis
Ramadan Babers, PhD
 
Part09 finance investment ratio analysis investment ratio
Part09 finance investment ratio analysis investment ratioPart09 finance investment ratio analysis investment ratio
Part09 finance investment ratio analysis investment ratio
Ramadan Babers, PhD
 
Part08 finance investment ratio analysis solvency ratio
Part08 finance investment ratio analysis solvency ratioPart08 finance investment ratio analysis solvency ratio
Part08 finance investment ratio analysis solvency ratio
Ramadan Babers, PhD
 
Part07 finance investment ratio analysis profitability ratio
Part07 finance investment ratio analysis profitability ratioPart07 finance investment ratio analysis profitability ratio
Part07 finance investment ratio analysis profitability ratio
Ramadan Babers, PhD
 
Part06 finance investment ratio analysis efficiency ratio
Part06 finance investment ratio analysis efficiency ratioPart06 finance investment ratio analysis efficiency ratio
Part06 finance investment ratio analysis efficiency ratio
Ramadan Babers, PhD
 
Part05 finance investment_ratio_analysis_liquidity_ratio_presentation
Part05 finance investment_ratio_analysis_liquidity_ratio_presentationPart05 finance investment_ratio_analysis_liquidity_ratio_presentation
Part05 finance investment_ratio_analysis_liquidity_ratio_presentation
Ramadan Babers, PhD
 
Part04 finance investment_ratio_analysis_introduction_presentation
Part04 finance investment_ratio_analysis_introduction_presentationPart04 finance investment_ratio_analysis_introduction_presentation
Part04 finance investment_ratio_analysis_introduction_presentation
Ramadan Babers, PhD
 
Part03 finance investment_financial_statement_analysis_presentation
Part03 finance investment_financial_statement_analysis_presentationPart03 finance investment_financial_statement_analysis_presentation
Part03 finance investment_financial_statement_analysis_presentation
Ramadan Babers, PhD
 
Part02 finance investment_finance_and_financial_reporting_presentation
Part02 finance investment_finance_and_financial_reporting_presentationPart02 finance investment_finance_and_financial_reporting_presentation
Part02 finance investment_finance_and_financial_reporting_presentation
Ramadan Babers, PhD
 
Part01 finance investment_basics_presentation
Part01 finance investment_basics_presentationPart01 finance investment_basics_presentation
Part01 finance investment_basics_presentation
Ramadan Babers, PhD
 
Strategic Management part_03_03
Strategic Management part_03_03Strategic Management part_03_03
Strategic Management part_03_03
Ramadan Babers, PhD
 
Strategic Management part_02_03
Strategic Management part_02_03Strategic Management part_02_03
Strategic Management part_02_03
Ramadan Babers, PhD
 
Strategic Management part_01_03
Strategic Management part_01_03Strategic Management part_01_03
Strategic Management part_01_03
Ramadan Babers, PhD
 
Customer Experience (CX) updated version V9.0
Customer Experience (CX) updated version V9.0Customer Experience (CX) updated version V9.0
Customer Experience (CX) updated version V9.0
Ramadan Babers, PhD
 
Customer Experience (CX)
Customer Experience (CX)Customer Experience (CX)
Customer Experience (CX)
Ramadan Babers, PhD
 
Python lec 1004_ch02_excercies
Python lec 1004_ch02_excerciesPython lec 1004_ch02_excercies
Python lec 1004_ch02_excercies
Ramadan Babers, PhD
 
Python lec 1003_for_biologists
Python lec 1003_for_biologistsPython lec 1003_for_biologists
Python lec 1003_for_biologists
Ramadan Babers, PhD
 
Python lec 1002_for_biologists
Python lec 1002_for_biologistsPython lec 1002_for_biologists
Python lec 1002_for_biologists
Ramadan Babers, PhD
 
Python lec 1001_for_biologists
Python lec 1001_for_biologistsPython lec 1001_for_biologists
Python lec 1001_for_biologists
Ramadan Babers, PhD
 
Db lec 08_new
Db lec 08_newDb lec 08_new
Db lec 08_new
Ramadan Babers, PhD
 

More from Ramadan Babers, PhD (20)

Part10 finance investment limitations of ratio analysis
Part10 finance investment limitations of ratio analysisPart10 finance investment limitations of ratio analysis
Part10 finance investment limitations of ratio analysis
 
Part09 finance investment ratio analysis investment ratio
Part09 finance investment ratio analysis investment ratioPart09 finance investment ratio analysis investment ratio
Part09 finance investment ratio analysis investment ratio
 
Part08 finance investment ratio analysis solvency ratio
Part08 finance investment ratio analysis solvency ratioPart08 finance investment ratio analysis solvency ratio
Part08 finance investment ratio analysis solvency ratio
 
Part07 finance investment ratio analysis profitability ratio
Part07 finance investment ratio analysis profitability ratioPart07 finance investment ratio analysis profitability ratio
Part07 finance investment ratio analysis profitability ratio
 
Part06 finance investment ratio analysis efficiency ratio
Part06 finance investment ratio analysis efficiency ratioPart06 finance investment ratio analysis efficiency ratio
Part06 finance investment ratio analysis efficiency ratio
 
Part05 finance investment_ratio_analysis_liquidity_ratio_presentation
Part05 finance investment_ratio_analysis_liquidity_ratio_presentationPart05 finance investment_ratio_analysis_liquidity_ratio_presentation
Part05 finance investment_ratio_analysis_liquidity_ratio_presentation
 
Part04 finance investment_ratio_analysis_introduction_presentation
Part04 finance investment_ratio_analysis_introduction_presentationPart04 finance investment_ratio_analysis_introduction_presentation
Part04 finance investment_ratio_analysis_introduction_presentation
 
Part03 finance investment_financial_statement_analysis_presentation
Part03 finance investment_financial_statement_analysis_presentationPart03 finance investment_financial_statement_analysis_presentation
Part03 finance investment_financial_statement_analysis_presentation
 
Part02 finance investment_finance_and_financial_reporting_presentation
Part02 finance investment_finance_and_financial_reporting_presentationPart02 finance investment_finance_and_financial_reporting_presentation
Part02 finance investment_finance_and_financial_reporting_presentation
 
Part01 finance investment_basics_presentation
Part01 finance investment_basics_presentationPart01 finance investment_basics_presentation
Part01 finance investment_basics_presentation
 
Strategic Management part_03_03
Strategic Management part_03_03Strategic Management part_03_03
Strategic Management part_03_03
 
Strategic Management part_02_03
Strategic Management part_02_03Strategic Management part_02_03
Strategic Management part_02_03
 
Strategic Management part_01_03
Strategic Management part_01_03Strategic Management part_01_03
Strategic Management part_01_03
 
Customer Experience (CX) updated version V9.0
Customer Experience (CX) updated version V9.0Customer Experience (CX) updated version V9.0
Customer Experience (CX) updated version V9.0
 
Customer Experience (CX)
Customer Experience (CX)Customer Experience (CX)
Customer Experience (CX)
 
Python lec 1004_ch02_excercies
Python lec 1004_ch02_excerciesPython lec 1004_ch02_excercies
Python lec 1004_ch02_excercies
 
Python lec 1003_for_biologists
Python lec 1003_for_biologistsPython lec 1003_for_biologists
Python lec 1003_for_biologists
 
Python lec 1002_for_biologists
Python lec 1002_for_biologistsPython lec 1002_for_biologists
Python lec 1002_for_biologists
 
Python lec 1001_for_biologists
Python lec 1001_for_biologistsPython lec 1001_for_biologists
Python lec 1001_for_biologists
 
Db lec 08_new
Db lec 08_newDb lec 08_new
Db lec 08_new
 

Recently uploaded

Haunted Houses by H W Longfellow for class 10
Haunted Houses by H W Longfellow for class 10Haunted Houses by H W Longfellow for class 10
Haunted Houses by H W Longfellow for class 10
nitinpv4ai
 
Skimbleshanks-The-Railway-Cat by T S Eliot
Skimbleshanks-The-Railway-Cat by T S EliotSkimbleshanks-The-Railway-Cat by T S Eliot
Skimbleshanks-The-Railway-Cat by T S Eliot
nitinpv4ai
 
欧洲杯下注-欧洲杯下注押注官网-欧洲杯下注押注网站|【​网址​🎉ac44.net🎉​】
欧洲杯下注-欧洲杯下注押注官网-欧洲杯下注押注网站|【​网址​🎉ac44.net🎉​】欧洲杯下注-欧洲杯下注押注官网-欧洲杯下注押注网站|【​网址​🎉ac44.net🎉​】
欧洲杯下注-欧洲杯下注押注官网-欧洲杯下注押注网站|【​网址​🎉ac44.net🎉​】
andagarcia212
 
CapTechTalks Webinar Slides June 2024 Donovan Wright.pptx
CapTechTalks Webinar Slides June 2024 Donovan Wright.pptxCapTechTalks Webinar Slides June 2024 Donovan Wright.pptx
CapTechTalks Webinar Slides June 2024 Donovan Wright.pptx
CapitolTechU
 
KHUSWANT SINGH.pptx ALL YOU NEED TO KNOW ABOUT KHUSHWANT SINGH
KHUSWANT SINGH.pptx ALL YOU NEED TO KNOW ABOUT KHUSHWANT SINGHKHUSWANT SINGH.pptx ALL YOU NEED TO KNOW ABOUT KHUSHWANT SINGH
KHUSWANT SINGH.pptx ALL YOU NEED TO KNOW ABOUT KHUSHWANT SINGH
shreyassri1208
 
CIS 4200-02 Group 1 Final Project Report (1).pdf
CIS 4200-02 Group 1 Final Project Report (1).pdfCIS 4200-02 Group 1 Final Project Report (1).pdf
CIS 4200-02 Group 1 Final Project Report (1).pdf
blueshagoo1
 
78 Microsoft-Publisher - Sirin Sultana Bora.pptx
78 Microsoft-Publisher - Sirin Sultana Bora.pptx78 Microsoft-Publisher - Sirin Sultana Bora.pptx
78 Microsoft-Publisher - Sirin Sultana Bora.pptx
Kalna College
 
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptxRESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
zuzanka
 
Educational Technology in the Health Sciences
Educational Technology in the Health SciencesEducational Technology in the Health Sciences
Educational Technology in the Health Sciences
Iris Thiele Isip-Tan
 
SWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptxSWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptx
zuzanka
 
FinalSD_MathematicsGrade7_Session2_Unida.pptx
FinalSD_MathematicsGrade7_Session2_Unida.pptxFinalSD_MathematicsGrade7_Session2_Unida.pptx
FinalSD_MathematicsGrade7_Session2_Unida.pptx
JennySularte1
 
Ch-4 Forest Society and colonialism 2.pdf
Ch-4 Forest Society and colonialism 2.pdfCh-4 Forest Society and colonialism 2.pdf
Ch-4 Forest Society and colonialism 2.pdf
lakshayrojroj
 
adjectives.ppt for class 1 to 6, grammar
adjectives.ppt for class 1 to 6, grammaradjectives.ppt for class 1 to 6, grammar
adjectives.ppt for class 1 to 6, grammar
7DFarhanaMohammed
 
INTRODUCTION TO HOSPITALS & AND ITS ORGANIZATION
INTRODUCTION TO HOSPITALS & AND ITS ORGANIZATION INTRODUCTION TO HOSPITALS & AND ITS ORGANIZATION
INTRODUCTION TO HOSPITALS & AND ITS ORGANIZATION
ShwetaGawande8
 
Information and Communication Technology in Education
Information and Communication Technology in EducationInformation and Communication Technology in Education
Information and Communication Technology in Education
MJDuyan
 
Pharmaceutics Pharmaceuticals best of brub
Pharmaceutics Pharmaceuticals best of brubPharmaceutics Pharmaceuticals best of brub
Pharmaceutics Pharmaceuticals best of brub
danielkiash986
 
Diversity Quiz Prelims by Quiz Club, IIT Kanpur
Diversity Quiz Prelims by Quiz Club, IIT KanpurDiversity Quiz Prelims by Quiz Club, IIT Kanpur
Diversity Quiz Prelims by Quiz Club, IIT Kanpur
Quiz Club IIT Kanpur
 
Andreas Schleicher presents PISA 2022 Volume III - Creative Thinking - 18 Jun...
Andreas Schleicher presents PISA 2022 Volume III - Creative Thinking - 18 Jun...Andreas Schleicher presents PISA 2022 Volume III - Creative Thinking - 18 Jun...
Andreas Schleicher presents PISA 2022 Volume III - Creative Thinking - 18 Jun...
EduSkills OECD
 
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
indexPub
 
220711130097 Tulip Samanta Concept of Information and Communication Technology
220711130097 Tulip Samanta Concept of Information and Communication Technology220711130097 Tulip Samanta Concept of Information and Communication Technology
220711130097 Tulip Samanta Concept of Information and Communication Technology
Kalna College
 

Recently uploaded (20)

Haunted Houses by H W Longfellow for class 10
Haunted Houses by H W Longfellow for class 10Haunted Houses by H W Longfellow for class 10
Haunted Houses by H W Longfellow for class 10
 
Skimbleshanks-The-Railway-Cat by T S Eliot
Skimbleshanks-The-Railway-Cat by T S EliotSkimbleshanks-The-Railway-Cat by T S Eliot
Skimbleshanks-The-Railway-Cat by T S Eliot
 
欧洲杯下注-欧洲杯下注押注官网-欧洲杯下注押注网站|【​网址​🎉ac44.net🎉​】
欧洲杯下注-欧洲杯下注押注官网-欧洲杯下注押注网站|【​网址​🎉ac44.net🎉​】欧洲杯下注-欧洲杯下注押注官网-欧洲杯下注押注网站|【​网址​🎉ac44.net🎉​】
欧洲杯下注-欧洲杯下注押注官网-欧洲杯下注押注网站|【​网址​🎉ac44.net🎉​】
 
CapTechTalks Webinar Slides June 2024 Donovan Wright.pptx
CapTechTalks Webinar Slides June 2024 Donovan Wright.pptxCapTechTalks Webinar Slides June 2024 Donovan Wright.pptx
CapTechTalks Webinar Slides June 2024 Donovan Wright.pptx
 
KHUSWANT SINGH.pptx ALL YOU NEED TO KNOW ABOUT KHUSHWANT SINGH
KHUSWANT SINGH.pptx ALL YOU NEED TO KNOW ABOUT KHUSHWANT SINGHKHUSWANT SINGH.pptx ALL YOU NEED TO KNOW ABOUT KHUSHWANT SINGH
KHUSWANT SINGH.pptx ALL YOU NEED TO KNOW ABOUT KHUSHWANT SINGH
 
CIS 4200-02 Group 1 Final Project Report (1).pdf
CIS 4200-02 Group 1 Final Project Report (1).pdfCIS 4200-02 Group 1 Final Project Report (1).pdf
CIS 4200-02 Group 1 Final Project Report (1).pdf
 
78 Microsoft-Publisher - Sirin Sultana Bora.pptx
78 Microsoft-Publisher - Sirin Sultana Bora.pptx78 Microsoft-Publisher - Sirin Sultana Bora.pptx
78 Microsoft-Publisher - Sirin Sultana Bora.pptx
 
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptxRESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
 
Educational Technology in the Health Sciences
Educational Technology in the Health SciencesEducational Technology in the Health Sciences
Educational Technology in the Health Sciences
 
SWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptxSWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptx
 
FinalSD_MathematicsGrade7_Session2_Unida.pptx
FinalSD_MathematicsGrade7_Session2_Unida.pptxFinalSD_MathematicsGrade7_Session2_Unida.pptx
FinalSD_MathematicsGrade7_Session2_Unida.pptx
 
Ch-4 Forest Society and colonialism 2.pdf
Ch-4 Forest Society and colonialism 2.pdfCh-4 Forest Society and colonialism 2.pdf
Ch-4 Forest Society and colonialism 2.pdf
 
adjectives.ppt for class 1 to 6, grammar
adjectives.ppt for class 1 to 6, grammaradjectives.ppt for class 1 to 6, grammar
adjectives.ppt for class 1 to 6, grammar
 
INTRODUCTION TO HOSPITALS & AND ITS ORGANIZATION
INTRODUCTION TO HOSPITALS & AND ITS ORGANIZATION INTRODUCTION TO HOSPITALS & AND ITS ORGANIZATION
INTRODUCTION TO HOSPITALS & AND ITS ORGANIZATION
 
Information and Communication Technology in Education
Information and Communication Technology in EducationInformation and Communication Technology in Education
Information and Communication Technology in Education
 
Pharmaceutics Pharmaceuticals best of brub
Pharmaceutics Pharmaceuticals best of brubPharmaceutics Pharmaceuticals best of brub
Pharmaceutics Pharmaceuticals best of brub
 
Diversity Quiz Prelims by Quiz Club, IIT Kanpur
Diversity Quiz Prelims by Quiz Club, IIT KanpurDiversity Quiz Prelims by Quiz Club, IIT Kanpur
Diversity Quiz Prelims by Quiz Club, IIT Kanpur
 
Andreas Schleicher presents PISA 2022 Volume III - Creative Thinking - 18 Jun...
Andreas Schleicher presents PISA 2022 Volume III - Creative Thinking - 18 Jun...Andreas Schleicher presents PISA 2022 Volume III - Creative Thinking - 18 Jun...
Andreas Schleicher presents PISA 2022 Volume III - Creative Thinking - 18 Jun...
 
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
 
220711130097 Tulip Samanta Concept of Information and Communication Technology
220711130097 Tulip Samanta Concept of Information and Communication Technology220711130097 Tulip Samanta Concept of Information and Communication Technology
220711130097 Tulip Samanta Concept of Information and Communication Technology
 

Classification using decision tree in detail

  • 1. +
  • 2. Outlines 1. Decision Tree 2. DT-Example 3. DT Building – Ex. Playing Tennis 4. DT Building – Thinking! 5. DT Building – Entropy 6. DT Building – Purity 7. Algorithm for decision tree learning 8. Choose an attribute to partition data 9. Information theory 10. Information Gain 11. Differences between ID3 and C4.5 2
  • 3. 3 1. Decision Trees Decision Trees are a type of Supervised ML (that is you explain what the input is and what the corresponding output is in the training data) where the data is continuously split according to a certain parameter. The decision tree is of particular importance in analyzing decision issues that contain a series of decisions or a series of cases of the occurring nature.
  • 4. 4 2. Decision Tree Example Body Temperature Give Birth Non-mammals Non-mammalsMammals warm no cold yes
  • 5. 5 2. DT-Example (Cont.) Types of Nodes Root Node Internal Node Leaf Node that has no incoming edges and zero or more outgoing edges. each of which has exactly one incoming edge and two or more outgoing edges (circle symbol). each of which has exactly one incoming edge and no outgoing edges (rectangle symbol). Body Temperature Give Birth Mammals Non-mammals Non-mammals
  • 6. 6 • Each leaf node is assigned a class label. • The non-terminal nodes (root and other internal nodes) contain attribute test conditions to separate records that have different characteristics. • For example, the root node shown in fig. uses the attribute Body Temp to separate warm- blooded from cold-blooded vertebrates. Class Label Test Condition 2. DT-Example (Cont.)
  • 7. 7 3. DT Building – Ex. Playing Tennis Playing Or Not
  • 8. 8 Playing Or Not 3. DT Building – Ex. Playing Tennis
  • 10. 10 How we can get DT for this example? outlook Humidity YesNo sunny normal rain high Wind Yes weak Yes No strong overcast 3. DT Building – Ex. Playing Tennis
  • 11. 11 4. DT Building – Thinking! Question 1 Yes No %50 - %50 Question 2 Yes No %50 - %50 Temp: Hot? Outlook: sunny?
  • 12. 12 4. DT Building – Thinking! (Cont.) Question 3 Yes No Question 4 Yes No %50 - %50 %50 - %50 %100%100 %50 - %50 %50 - %50
  • 13. 13 5. DT Building – Entropy Entropy: 𝐸 𝑆 = −𝑃(+) 𝑙𝑜𝑔2 𝑃(+) −𝑃(−) 𝑙𝑜𝑔2 𝑃(−) bits Or Entropy: 𝐸 𝑆 = − σ𝑖=1 𝑘 𝑝𝑖 𝑙𝑜𝑔2 (𝑝𝑖) - 𝑆 : subset of training examples - 𝑃(+) 𝑎𝑛𝑑 𝑃(−): # of positive and # of negative examples in 𝑆 • Interpretation : assume item 𝑋 belongs to 𝑆 - How many bits need to tell if 𝑋 positive or negative Entropy: • it relates to machine learning, • is a measure of the randomness in the information being processed.
  • 14. 14 0 ≤ 𝐸𝑛𝑡𝑟𝑜𝑝𝑦 ≤ 1 5. DT Building – Entropy (Cont.) 1 2 3 4 5 6 • Impure (4 yes / 4 no) • E 𝑆 = − 4 8 𝑙𝑜𝑔2 4 8 − 4 8 𝑙𝑜𝑔2 4 8 = 1 • Pure (8 yes / 0 no) • E 𝑆 = − 8 8 𝑙𝑜𝑔2 8 8 − 0 8 𝑙𝑜𝑔2 0 8 = 0
  • 15. 15 5. DT Building – Entropy (Cont.) 1 4 • Impure (4 yes / 4 no) • E 𝑆 = − 4 8 𝑙𝑜𝑔2 4 8 − 4 8 𝑙𝑜𝑔2 4 8 = 1 • Pure (8 yes / 0 no) • E 𝑆 = − 8 8 𝑙𝑜𝑔2 8 8 − 0 8 𝑙𝑜𝑔2 0 8 = 0
  • 16. 16 6. DT Building – Purity The decision to split at each node is made according to the metric called purity. • A node is 100% impure when a node is split evenly 50/50 and • A node is 100% pure when all of its data belongs to a single class. • Impure (4 yes / 4 no) • E 𝑆 = − 4 8 𝑙𝑜𝑔2 4 8 − 4 8 𝑙𝑜𝑔2 4 8 = 1 • Pure (8 yes / 0 no) • E 𝑆 = − 8 8 𝑙𝑜𝑔2 8 8 − 0 8 𝑙𝑜𝑔2 0 8 = 0
  • 18. 18 𝐸 𝑃𝑙𝑎𝑦𝑖𝑛𝑔 = − 9 14 𝑙𝑜𝑔2 9 14 − 5 14 𝑙𝑜𝑔2 5 14 = 0.40978 + 0.53051 = 0.94029 No Play Play Playing Or Not 3. DT Building – Ex. Playing Tennis (Cont.)
  • 19. 19 Wind weak strong 𝐸 𝑃𝑙𝑎𝑦𝑖𝑛𝑔 = − 9 14 𝑙𝑜𝑔2 9 14 − 5 14 𝑙𝑜𝑔2 5 14 = 0.40978 + 0.53051 = 0.94029 𝐸 𝑤𝑒𝑎𝑘 = − 6 8 𝑙𝑜𝑔2 6 8 − 2 8 𝑙𝑜𝑔2 2 8 = 0.811 𝐸 𝑠𝑡𝑟𝑜𝑛𝑔 = − 3 6 𝑙𝑜𝑔2 3 6 − 3 6 𝑙𝑜𝑔2 3 6 = 1 No Play Play 3. DT Building – Ex. Playing Tennis (Cont.)
  • 20. 20 Humidity high normal 𝐸 𝑃𝑙𝑎𝑦𝑖𝑛𝑔 = − 9 14 𝑙𝑜𝑔2 9 14 − 5 14 𝑙𝑜𝑔2 5 14 = 0.40978 + 0.53051 = 0.94029 𝐸 ℎ𝑖𝑔ℎ = − 3 7 𝑙𝑜𝑔2 3 7 − 4 7 𝑙𝑜𝑔2 4 7 = 0.9854 𝐸 𝑛𝑜𝑟𝑚𝑎𝑙 = − 6 7 𝑙𝑜𝑔2 6 7 − 1 7 𝑙𝑜𝑔2 1 4 = 0.5921 3. DT Building – Ex. Playing Tennis (Cont.)
  • 21. 21 Temp hot cool 𝐸 𝑃𝑙𝑎𝑦𝑖𝑛𝑔 = − 9 14 𝑙𝑜𝑔2 9 14 − 5 14 𝑙𝑜𝑔2 5 14 = 0.40978 + 0.53051 = 0.94029 𝐸 ℎ𝑜𝑡 = − 2 4 𝑙𝑜𝑔2 2 4 − 2 4 𝑙𝑜𝑔2 2 4 = 1 𝐸 𝑚𝑖𝑙𝑑 = − 4 6 𝑙𝑜𝑔2 4 6 − 2 6 𝑙𝑜𝑔2 2 6 = 0.9185 mild 𝐸 𝑐𝑜𝑜𝑙 = − 3 4 𝑙𝑜𝑔2 3 4 − 1 4 𝑙𝑜𝑔2 1 4 = 0.8114 3. DT Building – Ex. Playing Tennis (Cont.)
  • 22. 22 Outlook sunny rain 𝐸 𝑃𝑙𝑎𝑦𝑖𝑛𝑔 = − 9 14 𝑙𝑜𝑔2 9 14 − 5 14 𝑙𝑜𝑔2 5 14 = 0.40978 + 0.53051 = 0.94029 𝐸 𝑠𝑢𝑛𝑛𝑦 = − 2 5 𝑙𝑜𝑔2 2 5 − 3 5 𝑙𝑜𝑔2 3 5 = 0.97115 𝐸 𝑜𝑣𝑒𝑟𝑐𝑎𝑠𝑡 = 0 overcast 𝐸 𝑟𝑎𝑖𝑛 = − 3 5 𝑙𝑜𝑔2 3 5 − 2 5 𝑙𝑜𝑔2 2 5 = 0.97115 3. DT Building – Ex. Playing Tennis (Cont.)
  • 23. 23 7. Algorithm for decision tree learning  Basic algorithm (a greedy divide-and-conquer algorithm)  Assume attributes are categorical now (continuous attributes can be handled too)  Tree is constructed in a top-down recursive manner  At start, all the training examples are at the root  Examples are partitioned recursively based on selected attributes  Attributes are selected on the basis of an impurity function (e.g., information gain)  Conditions for stopping partitioning  All examples for a given node belong to the same class  There are no remaining attributes for further partitioning – majority class is the leaf  There are no examples left
  • 24. 24 8. Choose an attribute to partition data  The key to building a decision tree - which attribute to choose in order to branch.  The objective is to reduce impurity or uncertainty in data as much as possible.  A subset of data is pure if all instances belong to the same class.  The heuristic in C4.5 is to choose the attribute with the maximum Information Gain or Gain Ratio based on information theory.
  • 25. 25 9. Information theory  Information theory provides a mathematical basis for measuring the information content.  To understand the notion of information, think about it as providing the answer to a question, for example, whether a coin will come up heads.  If one already has a good guess about the answer, then the actual answer is less informative.  If one already knows that the coin is rigged so that it will come with heads with probability 0.99, then a message (advanced information) about the actual outcome of a flip is worth less than it would be for a honest coin (50-50).
  • 26. 26 10. Information Gain  Given a set of examples 𝐷, we first compute its entropy:  If we make attribute 𝐴𝑖 with 𝑣 values, the root of the current tree, this will partition 𝐷 into 𝑣 subsets 𝐷1, 𝐷2 … , 𝐷𝑣 . The expected entropy if 𝐴𝑖 is used as the current root: 𝑒𝑛𝑡𝑟𝑜𝑝𝑦 𝐷 = − σ 𝑗=1 𝑐 P 𝑐𝑗 𝑙𝑜𝑔2 P(𝑐𝑗) 𝑒𝑛𝑡𝑟𝑜𝑝𝑦 𝐴 𝑖 𝐷 = ෍ 𝑗=1 𝑣 𝐷𝑗 𝐷 × 𝑒𝑛𝑡𝑟𝑜𝑝𝑦 (𝐷𝑗)
  • 27. 27 10. Information Gain (Cont.) 𝑔𝑎𝑖𝑛 𝐷, 𝐴𝑖 = 𝑒𝑛𝑡𝑟𝑜𝑝𝑦 𝐷 − 𝑒𝑛𝑡𝑟𝑜𝑝𝑦 𝐴 𝑖 (𝐷)  Information gained by selecting attribute 𝐴𝑖 to branch or to partition the data is  We choose the attribute with the highest gain to branch/split the current tree. 𝑤ℎ𝑒𝑟𝑒; 𝑒𝑛𝑡𝑟𝑜𝑝𝑦 𝐴 𝑖 𝐷 = ෍ 𝑗=1 𝑣 𝐷𝑗 𝐷 × 𝑒𝑛𝑡𝑟𝑜𝑝𝑦 (𝐷𝑗)
  • 28. 28 Wind weak strong 𝐸 𝑃𝑙𝑎𝑦𝑖𝑛𝑔 = 0.94029 𝐸 𝑤𝑒𝑎𝑘 = 0.811 𝐸 𝑠𝑡𝑟𝑜𝑛𝑔 = 1 G 𝑆 , 𝑄 = 𝐸 𝑆 − ෍ 𝑖=1 𝑘 𝑝𝑖 × 𝐸(𝑆, 𝑄𝑖) G 𝑝𝑙𝑎𝑦 , 𝑤𝑖𝑛𝑑 = 0.94029 − 8 14 × 0.811 − 6 14 × 1 = 0.04829 3. DT Building – Ex. Playing Tennis (Cont.)
  • 29. 29 Humidity high normal 𝐸 𝑃𝑙𝑎𝑦𝑖𝑛𝑔 = 0.94029 𝐸 ℎ𝑖𝑔ℎ = 0.9854 𝐸 𝑛𝑜𝑟𝑚𝑎𝑙 = 0.5921 G 𝑆 , 𝑄 = 𝐸 𝑆 − ෍ 𝑖=1 𝑘 𝑝𝑖 × 𝐸(𝑆, 𝑄𝑖) G 𝑝𝑙𝑎𝑦 , 𝐻𝑢𝑚𝑖𝑑𝑖𝑡𝑦 = 0.94029 − 7 14 × 0.9854 − 7 14 × 0.5921 = 0.15415 3. DT Building – Ex. Playing Tennis (Cont.)
  • 30. 30 Temp hot cool 𝐸 𝑃𝑙𝑎𝑦𝑖𝑛𝑔 = 0.94029 𝐸 ℎ𝑜𝑡 = 1 𝐸 𝑚𝑖𝑙𝑑 = 0.9185 mild 𝐸 𝑐𝑜𝑜𝑙 = 0.8114 G 𝑆 , 𝑄 = 𝐸 𝑆 − ෍ 𝑖=1 𝑘 𝑝𝑖 × 𝐸(𝑆, 𝑄𝑖) G 𝑝𝑙𝑎𝑦 , 𝑡𝑒𝑚𝑝 = 0.94029 − 4 14 × 1 − 6 14 × 0.9185 − 4 14 × 0.8114 = 0.02919 3. DT Building – Ex. Playing Tennis (Cont.)
  • 31. 31 Outlook sunny rain 𝐸 𝑃𝑙𝑎𝑦𝑖𝑛𝑔 = 0.94029 𝐸 𝑠𝑢𝑛𝑛𝑦 = 0.97115 𝐸 𝑜𝑣𝑒𝑟𝑐𝑎𝑠𝑡 = 0 overcast 𝐸 𝑟𝑎𝑖𝑛 = 0.97115 G 𝑆 , 𝑄 = 𝐸 𝑆 − ෍ 𝑖=1 𝑘 𝑝𝑖 × 𝐸(𝑆, 𝑄𝑖) G 𝑝𝑙𝑎𝑦 , 𝑜𝑢𝑡𝑙𝑜𝑜𝑘 = 0.94029 − 5 14 × 0.97115 − 4 14 × 0 − 5 14 × 0.97115 = 0.24669 3. DT Building – Ex. Playing Tennis (Cont.)
  • 32. 32 G 𝑝𝑙𝑎𝑦 , 𝑜𝑢𝑡𝑙𝑜𝑜𝑘 = 0.24669 G 𝑝𝑙𝑎𝑦 , 𝑡𝑒𝑚𝑝 = 0.02919 G 𝑝𝑙𝑎𝑦 , 𝐻𝑢𝑚𝑖𝑑𝑖𝑡𝑦 = 0.15415 G 𝑝𝑙𝑎𝑦 , 𝑤𝑖𝑛𝑑 = 0.04829 Playing Or Not 3. DT Building – Ex. Playing Tennis (Cont.)
  • 33. 33 G 𝑝𝑙𝑎𝑦 , 𝑜𝑢𝑡𝑙𝑜𝑜𝑘 = 0.24669 Playing Or Not outlook sunny rain Yes overcast 3. DT Building – Ex. Playing Tennis (Cont.)
  • 34. 34 Playing Or Not 3. DT Building – Ex. Playing Tennis (Cont.)
  • 35. 35 𝐸 𝑠𝑢𝑛𝑛𝑦 = − 3 5 𝑙𝑜𝑔2 3 5 − 2 5 𝑙𝑜𝑔2 2 5 = 0.444 + 0.532 = 0.976 No Play Play Playing Or Not Sunny Set 3. DT Building – Ex. Playing Tennis (Cont.)
  • 36. 36 Wind weak strong 𝐸 𝑤𝑒𝑎𝑘 = − 1 3 𝑙𝑜𝑔2 1 3 − 2 3 𝑙𝑜𝑔2 2 3 = 0.92 𝐸 𝑠𝑡𝑟𝑜𝑛𝑔 = 1 (𝑖𝑚𝑝𝑢𝑟𝑒 𝑛𝑜𝑑𝑒) No Play Play 𝐸 𝑠𝑢𝑛𝑛𝑦 = − 3 5 𝑙𝑜𝑔2 3 5 − 2 5 𝑙𝑜𝑔2 2 5 = 0.444 + 0.532 = 0.976 G 𝑠𝑢𝑛𝑛𝑦 , 𝑤𝑖𝑛𝑑 = 0.976 − 3 5 × 0.92 − 2 5 × 1 = 0.024 3. DT Building – Ex. Playing Tennis (Cont.)
  • 37. 37 𝐸 ℎ𝑖𝑔ℎ = 0 (𝑝𝑢𝑟𝑒 𝑛𝑜𝑑𝑒) 𝐸 𝑛𝑜𝑟𝑚𝑎𝑙 = 0 (pure node) 𝐸 𝑠𝑢𝑛𝑛𝑦 = − 3 5 𝑙𝑜𝑔2 3 5 − 2 5 𝑙𝑜𝑔2 2 5 = 0.444 + 0.532 = 0.976 Humidity high normal G 𝑠𝑢𝑛𝑛𝑦 , ℎ𝑢𝑚𝑖𝑑𝑖𝑡𝑦 = 0.976 − 3 5 × 0 − 2 5 × 0 = 0.976 3. DT Building – Ex. Playing Tennis (Cont.)
  • 38. 38 Temp hot cool 𝐸 ℎ𝑜𝑡 = 0 (pure node) 𝐸 𝑚𝑖𝑙𝑑 = 1 (impure node mild 𝐸 𝑐𝑜𝑜𝑙 = 0 (pure mode) G 𝑠𝑢𝑛𝑛𝑦 , 𝑡𝑒𝑚𝑝 = 0.976 − 2 5 × 0 − 2 5 × 1 − 1 5 × 0 = 0.576 𝐸 𝑠𝑢𝑛𝑛𝑦 = − 3 5 𝑙𝑜𝑔2 3 5 − 2 5 𝑙𝑜𝑔2 2 5 = 0.444 + 0.532 = 0.976 3. DT Building – Ex. Playing Tennis (Cont.)
  • 39. 39 Playing Or Not 3. DT Building – Ex. Playing Tennis (Cont.)
  • 40. 40 𝐸 𝑟𝑎𝑖𝑛 = − 3 5 𝑙𝑜𝑔2 3 5 − 2 5 𝑙𝑜𝑔2 2 5 = 0.444 + 0.532 = 0.976 No Play Play Rain Set Playing Or Not 3. DT Building – Ex. Playing Tennis (Cont.)
  • 41. 41 Wind weak strong 𝐸 𝑤𝑒𝑎𝑘 = 0 (pure node) No Play Play 𝐸 𝑟𝑎𝑖𝑛 = − 3 5 𝑙𝑜𝑔2 3 5 − 2 5 𝑙𝑜𝑔2 2 5 = 0.444 + 0.532 = 0.976 G 𝑟𝑎𝑖𝑛 , 𝑤𝑖𝑛𝑑 = 0.976 − 3 5 × 0.92 − 2 5 × 0 = 0.424 𝐸 𝑠𝑡𝑟𝑜𝑛𝑔 = − 1 3 𝑙𝑜𝑔2 1 3 − 2 3 𝑙𝑜𝑔2 2 3 = 0.92 3. DT Building – Ex. Playing Tennis (Cont.)
  • 42. 42 𝐸 ℎ𝑖𝑔ℎ = 1 (𝑖𝑚𝑝𝑢𝑟𝑒 𝑛𝑜𝑑𝑒) 𝐸 𝑟𝑎𝑖𝑛 = − 3 5 𝑙𝑜𝑔2 3 5 − 2 5 𝑙𝑜𝑔2 2 5 = 0.444 + 0.532 = 0.976 Humidity high normal G 𝑟𝑎𝑖𝑛 , ℎ𝑢𝑚𝑖𝑑𝑖𝑡𝑦 = 0.976 − 3 5 × 0.92 − 2 5 × 1 = 0.024 𝐸 𝑛𝑜𝑟𝑚𝑎𝑙 = − 1 3 𝑙𝑜𝑔2 1 3 − 2 3 𝑙𝑜𝑔2 2 3 = 0.92 3. DT Building – Ex. Playing Tennis (Cont.)
  • 43. 43 Temp No data hot cool 𝐸 ℎ𝑜𝑡 = no data mild 𝐸 𝑐𝑜𝑜𝑙 = 1 (impure node) G 𝑟𝑎𝑖𝑛 , 𝑡𝑒𝑚𝑝 = 0.976 − 3 5 × 0.92 − 2 5 × 1 − 𝑛𝑜 𝑑𝑎𝑡𝑎 = 0.024 𝐸 𝑚𝑖𝑙𝑑 = − 1 3 𝑙𝑜𝑔2 1 3 − 2 3 𝑙𝑜𝑔2 2 3 = 0.92 𝐸 𝑟𝑎𝑖𝑛 = − 3 5 𝑙𝑜𝑔2 3 5 − 2 5 𝑙𝑜𝑔2 2 5 = 0.444 + 0.532 = 0.976 3. DT Building – Ex. Playing Tennis (Cont.)
  • 44. 44 G 𝑠𝑢𝑛𝑛𝑦 , 𝑤𝑖𝑛𝑑 =0.024 outlook sunny rain Yes overcast G 𝑠𝑢𝑛𝑛𝑦 , ℎ𝑢𝑚𝑖𝑑𝑖𝑡𝑦 = 0.976 G 𝑠𝑢𝑛𝑛𝑦 , 𝑡𝑒𝑚𝑝 =0.576 G 𝑟𝑎𝑖𝑛 , 𝑤𝑖𝑛𝑑 =0.424 G 𝑟𝑎𝑖𝑛 , ℎ𝑢𝑚𝑖𝑑𝑖𝑡𝑦 = 0.024 G 𝑟𝑎𝑖𝑛 , 𝑡𝑒𝑚𝑝 =0.024 3. DT Building – Ex. Playing Tennis (Cont.)
  • 45. 45 outlook Humidity YesNo sunny normal rain high Yes overcast G 𝑟𝑎𝑖𝑛 , 𝑤𝑖𝑛𝑑 =0.424 G 𝑟𝑎𝑖𝑛 , 𝑡𝑒𝑚𝑝 =0.024 3. DT Building – Ex. Playing Tennis (Cont.)
  • 47. 47 11. Differences between ID3 and C4.5 ID3 C4.5 Splitting Criteria Information Gain Ratio Gain Attribute Type Handles only categorical value Handles both categorical & numerical value Missing Values Do not handle Handle