Professional Documents
Culture Documents
Data Mining
Data Mining
Data Mining
Lecturer: Prof. Osama Mohamed Badawy
Eng. Fatma Nagy
Agenda
1. Association Rules
2. Clustering (K_means)
3. Classification (Decision Tree)
3
Example
4
Solution
5
L2
6
Final Answer
7
K_Means
Calculating Distance
8
Example
9
Initial Centers
10
11
12
13
14
15
16
Decision Tree
17
1. Size
18
19
2. Shape
20
21
3. Color
22
23
24
25
26
27
28
Confusion Matrix
PREDICTED CLASS
Class=Yes Class=No
ACTUAL
CLASS
Class=Yes a (TP) b (FN)
Class=No c (FP) d (TN)
a 𝑎+𝑑
Precision (p) = Accuracy =
a+c 𝑎+𝑏+𝑐+𝑑
a
Recall (r) = 𝑇𝑃 + 𝑇𝑁
a+b =
2 rp 2a 𝑇𝑃 + 𝑇𝑁 + 𝐹𝑃 + 𝐹𝑁
F - measure (F) = =
r + p 2a + b + c
29
ثExample
30