Part1 Lecture 13 Annotated
Part1 Lecture 13 Annotated
Decision Trees
Training Data
𝑋1
𝑌 𝑁
𝑋0 𝑌 𝑁
𝑌 𝑁
Gini Index
Category Feature n
0 C 2.85
1 B 2.03
2 A 7.82
3 C 2.7
4 B 1.5
… …. …
Objective: Find a split on X-axis that maximizes the ‘homogeneity’ of subsets after the split
https://www.quora.com/What-is-the-interpretation-and-intuitive-explanation-of-Gini-impurity-in-decision-trees
Gini Index
Case 0 : C= 2
Gini Index
https://www.quora.com/What-is-the-interpretation-and-intuitive-explanation-of-Gini-impurity-in-decision-trees
x_0