Decision Trees
COMPSCI 371D — Machine Learning
COMPSCI 371D — Machine Learning Decision Trees 1 / 19
Decision Trees COMPSCI 371D Machine Learning COMPSCI 371D Machine - - PowerPoint PPT Presentation
Decision Trees COMPSCI 371D Machine Learning COMPSCI 371D Machine Learning Decision Trees 1 / 19 Outline 1 Motivation 2 Recursive Splits and Trees 3 Prediction 4 Purity 5 How to Split 6 When to Stop Splitting COMPSCI 371D Machine
COMPSCI 371D — Machine Learning Decision Trees 1 / 19
1 Motivation 2 Recursive Splits and Trees 3 Prediction 4 Purity 5 How to Split 6 When to Stop Splitting
COMPSCI 371D — Machine Learning Decision Trees 2 / 19
Motivation
COMPSCI 371D — Machine Learning Decision Trees 3 / 19
Recursive Splits and Trees
0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 COMPSCI 371D — Machine Learning Decision Trees 4 / 19
Recursive Splits and Trees
a: d = 2 t = 0.265 b: d = 1 t = 0.41 c: d = 2 t = 0.34 d: d = 1 t = 0.16 p = [0, 1, 0] e: d = 2 t = 0.55 p = [1, 0, 0] p = [1, 0, 0] p = [0, 0, 1] p = [1, 0, 0] p = [0, 0, 1]
COMPSCI 371D — Machine Learning Decision Trees 5 / 19
Recursive Splits and Trees
def
def
COMPSCI 371D — Machine Learning Decision Trees 6 / 19
Recursive Splits and Trees
COMPSCI 371D — Machine Learning Decision Trees 7 / 19
Prediction
COMPSCI 371D — Machine Learning Decision Trees 8 / 19
Purity
COMPSCI 371D — Machine Learning Decision Trees 9 / 19
Purity
COMPSCI 371D — Machine Learning Decision Trees 10 / 19
Purity
COMPSCI 371D — Machine Learning Decision Trees 11 / 19
Purity
y∈Y p(y|S)(1 − p(y|S)) =
y∈Y p2(y|S)
COMPSCI 371D — Machine Learning Decision Trees 12 / 19
How to Split
COMPSCI 371D — Machine Learning Decision Trees 13 / 19
How to Split
|S|i(L) − |R| |S|i(R)
j
(uj) j
j
(uj) j
j
x(ℓ−1)
j
+x(ℓ)
j
2
j
(uj) j
COMPSCI 371D — Machine Learning Decision Trees 14 / 19
When to Stop Splitting
Decision Trees 15 / 19
When to Stop Splitting
COMPSCI 371D — Machine Learning Decision Trees 16 / 19
When to Stop Splitting
0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
COMPSCI 371D — Machine Learning Decision Trees 17 / 19
When to Stop Splitting
COMPSCI 371D — Machine Learning Decision Trees 18 / 19
When to Stop Splitting
COMPSCI 371D — Machine Learning Decision Trees 19 / 19