Coding a Decision Tree from Scratch in Python p.8: Handling Categorical Features

Опубликовано: 12 Июль 2026
на канале: Sebastian Mantey
15,224
210

In this video series we are going to code a decision tree classifier from scratch in Python using just numpy and pandas. And in this video we are going to make some changes to our functions so that the decision tree algorithm can also handle categorical data and not just continuous data. And therefore, we are going to make use of the Titanic data set.

Links:
GitHub repo: https://github.com/SebastianMantey/De...
Corresponding blog post: https://www.sebastian-mantey.com/code...
Decision Tree Algorithm explained (Intuition):    • What is Machine Learning? Part 2/5: Decisi...  
Decision Tree Algorithm explained (Entropy):    • What is Machine Learning? Part 3/5: Decisi...  
"Decision Tree from Scratch" playlist:    • Coding a Decision Tree from Scratch in Pyt...  

If you are wondering why the slides don’t disappear even though I am typing in the jupyter notebook, I used AutoHotkey for that. Here is an article that describes how to use it:
https://www.howtogeek.com/196958/the-...