Decision Trees: Entropy and Gini Impurity
You're a loan officer at a bank. Every day, applications cross your desk — income statements, employment records, credit histories. You've developed a mental ch…
~/blog/tutorials/machine-learning
You're a loan officer at a bank. Every day, applications cross your desk — income statements, employment records, credit histories. You've developed a mental ch…
You found the best root split in post 01: Employed. But one split doesn't make a tree. The left child (Employed=No, 4 samples) still has a mix of Yes and No. Th…
You have a house and you want to know if it's worth over $300k. You know its square footage and number of bedrooms. These are numbers — 1200 sq ft, 3 bedrooms,…
You train your first full decision tree. Training accuracy: 100%. You feel great. Then you check the test accuracy: 92.98%. You feel confused. The tree memorize…
You have a house. You know its square footage. How much is it worth? You could draw a straight line through the data — that's linear regression, and it works we…