Machine Learning For Beginners: Algorithms, Decision Tree & Random Forest Introduction by William Sullivan

Machine Learning For Beginners: Algorithms, Decision Tree & Random Forest Introduction by William Sullivan

Author:William Sullivan
Language: eng
Format: epub, azw3
Published: 2017-08-19T07:00:00+00:00


Decision Tree, Algorithm, Gini IndexSplit on Gender:

Calculate, Gini for sub-node Female = (0.2)*(0.2) + (0.8)*(0.8) =0.68

Gini for sub-node Male = (0.65)*(0.65) + (0.35)*(0.35) =0.55

Calculate weighted Gini for Split Gender = (10/30)*0.68 + (20/30)*0.55 = 0.59

Similar for Split on Class:

Gini for sub-node Class IX = (0.43)*(0.43) + (0.57)*(0.57) =0.51

Gini for sub-node Class X = (0.56)*(0.56) + (0.44)*(0.44) =0.51

Calculate weighted Gini for Split Class = (14/30)*0.51 + (16/30)*0.51 = 0.51

Above, you can see that Gini score for Split on Gender is higher than Split on Class, hence, the node split will take place on Gender.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.