Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Spring 2017 | Derbinsky
Supervised Learning via Decision Trees
Lecture 8
March 27, 2017 Supervised Learning via Decision Trees 1
Supervised Learning via Decision Trees Lecture 8 Supervised - - PowerPoint PPT Presentation
Wentworth Institute of Technology COMP3770 Artificial Intelligence | Spring 2017 | Derbinsky Supervised Learning via Decision Trees Lecture 8 Supervised Learning via Decision Trees March 27, 2017 1 Wentworth Institute of Technology
Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Spring 2017 | Derbinsky
March 27, 2017 Supervised Learning via Decision Trees 1
Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Spring 2017 | Derbinsky
March 27, 2017 Supervised Learning via Decision Trees 2
Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Spring 2017 | Derbinsky
choice nodes from root to a leaf node
– Each choice node splits on a single feature
classification or regression
understand
testing/prediction time
March 27, 2017 Supervised Learning via Decision Trees 3
https://en.wikipedia.org/wiki/Decision_tree_learning
Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Spring 2017 | Derbinsky
March 27, 2017 Supervised Learning via Decision Trees 4
Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Spring 2017 | Derbinsky
March 27, 2017 Supervised Learning via Decision Trees 5
Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Spring 2017 | Derbinsky
March 27, 2017 Supervised Learning via Decision Trees 6
Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Spring 2017 | Derbinsky
March 27, 2017 Supervised Learning via Decision Trees 7
Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Spring 2017 | Derbinsky
March 27, 2017 Supervised Learning via Decision Trees 8
Now!
http://www.saedsayad.com/decision_tree_reg.htm
Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Spring 2017 | Derbinsky
March 27, 2017 Supervised Learning via Decision Trees 9
Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Spring 2017 | Derbinsky
March 27, 2017 Supervised Learning via Decision Trees 10
Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Spring 2017 | Derbinsky
March 27, 2017 Supervised Learning via Decision Trees 11
Expected value of information
Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Spring 2017 | Derbinsky
March 27, 2017 Supervised Learning via Decision Trees 12
Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Spring 2017 | Derbinsky
March 27, 2017 Supervised Learning via Decision Trees 13
Log Base = Units: 2=bit (binary digit), 3=trit, e=nat
Log Base = Units: 2=shannon/bit
Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Spring 2017 | Derbinsky
March 27, 2017 Supervised Learning via Decision Trees 14
Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Spring 2017 | Derbinsky
March 27, 2017 Supervised Learning via Decision Trees 15
Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Spring 2017 | Derbinsky
March 27, 2017 Supervised Learning via Decision Trees 16
Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Spring 2017 | Derbinsky
March 27, 2017 Supervised Learning via Decision Trees 17
Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Spring 2017 | Derbinsky
March 27, 2017 Supervised Learning via Decision Trees 18
Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Spring 2017 | Derbinsky
March 27, 2017 Supervised Learning via Decision Trees 19
Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Spring 2017 | Derbinsky
March 27, 2017 Supervised Learning via Decision Trees 20
Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Spring 2017 | Derbinsky
March 27, 2017 Supervised Learning via Decision Trees 21
Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Spring 2017 | Derbinsky
March 27, 2017 Supervised Learning via Decision Trees 22
Average Entropy of the children
Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Spring 2017 | Derbinsky
March 27, 2017 Supervised Learning via Decision Trees 23
Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Spring 2017 | Derbinsky
March 27, 2017 Supervised Learning via Decision Trees 24
Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Spring 2017 | Derbinsky
March 27, 2017 Supervised Learning via Decision Trees 25
X Y Z Class 1 1 1 A 1 1 A 1 B 1 B
Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Spring 2017 | Derbinsky
March 27, 2017 Supervised Learning via Decision Trees 26
X Y Z Class 1 1 1 A 1 1 A 1 B 1 B
Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Spring 2017 | Derbinsky
March 27, 2017 Supervised Learning via Decision Trees 27
X Y Z Class 1 1 1 A 1 1 A 1 B 1 B
Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Spring 2017 | Derbinsky
March 27, 2017 Supervised Learning via Decision Trees 28
X Y Z Class 1 1 1 A 1 1 A 1 B 1 B
Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Spring 2017 | Derbinsky
March 27, 2017 Supervised Learning via Decision Trees 29
X Y Z Class 1 1 1 A 1 1 A 1 B 1 B
Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Spring 2017 | Derbinsky
March 27, 2017 Supervised Learning via Decision Trees 30
IG: 0.311 1.0 0.0 X Y Z Class 1 1 1 A 1 1 A 1 B 1 B Y A B 1
Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Spring 2017 | Derbinsky
March 27, 2017 Supervised Learning via Decision Trees 31
http://www.saedsayad.com/decision_tree_reg.htm
Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Spring 2017 | Derbinsky
No Surfacing Flippers? Fish? Yes Yes Yes Yes Yes Yes Yes No No No Yes No No Yes No
March 27, 2017 Supervised Learning via Decision Trees 32
Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Spring 2017 | Derbinsky
No Surfacing Flippers? Fish? Yes Yes Yes Yes Yes Yes Yes No No No Yes No No Yes No
March 27, 2017 Supervised Learning via Decision Trees 33
! " log! " ! + ' " log! " '
Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Spring 2017 | Derbinsky
No Surfacing Flippers? Fish? Yes Yes Yes Yes Yes Yes Yes No No No Yes No No Yes No
March 27, 2017 Supervised Learning via Decision Trees 34
' " (! ' log! ' ! + ) ' log! ' ))
Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Spring 2017 | Derbinsky
No Surfacing Flippers? Fish? Yes Yes Yes Yes Yes Yes Yes No No No Yes No No Yes No
March 27, 2017 Supervised Learning via Decision Trees 35
+ " (1) + ) " (0)
Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Spring 2017 | Derbinsky
Flippers? Fish? Yes Yes Yes Yes No No
March 27, 2017 Supervised Learning via Decision Trees 36
Flippers? Fish? Yes No Yes No No Surfacing No Yes
Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Spring 2017 | Derbinsky
March 27, 2017 Supervised Learning via Decision Trees 37
Flippers? Fish? Yes No Yes No
Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Spring 2017 | Derbinsky
Flippers? Fish? Yes Yes Yes Yes No No
March 27, 2017 Supervised Learning via Decision Trees 38
No Surfacing No Yes No
Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Spring 2017 | Derbinsky
March 27, 2017 Supervised Learning via Decision Trees 39
Flippers? Fish? Yes Yes Yes Yes No No
Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Spring 2017 | Derbinsky
March 27, 2017 Supervised Learning via Decision Trees 40
Fish? No Flippers No Yes Fish? Yes Yes
Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Spring 2017 | Derbinsky
March 27, 2017 Supervised Learning via Decision Trees 41
Fish? No
Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Spring 2017 | Derbinsky
March 27, 2017 Supervised Learning via Decision Trees 42
Flippers No Yes Fish? Yes Yes No
Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Spring 2017 | Derbinsky
March 27, 2017 Supervised Learning via Decision Trees 43
Fish? Yes Yes
Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Spring 2017 | Derbinsky
March 27, 2017 Supervised Learning via Decision Trees 44
Flippers No Yes No Yes
Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Spring 2017 | Derbinsky
March 27, 2017 Supervised Learning via Decision Trees 45
No Surfacing No Yes No Flippers No Yes No Yes
No Surfacing Flippers? Fish ? Yes Yes Yes Yes Yes Yes Yes No No No Yes No No Yes No
Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Spring 2017 | Derbinsky
March 27, 2017 Supervised Learning via Decision Trees 46 Fish? Yes Yes No No No
No
Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Spring 2017 | Derbinsky
March 27, 2017 Supervised Learning via Decision Trees 47
Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Spring 2017 | Derbinsky
March 27, 2017 Supervised Learning via Decision Trees 48
Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Spring 2017 | Derbinsky
March 27, 2017 Supervised Learning via Decision Trees 49
Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Spring 2017 | Derbinsky
March 27, 2017 Supervised Learning via Decision Trees 50
Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Spring 2017 | Derbinsky
March 27, 2017 Supervised Learning via Decision Trees 51
Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Spring 2017 | Derbinsky
March 27, 2017 Supervised Learning via Decision Trees 52