Supervised Models

This category groups articles dealing with supervised problems. Each post focuses on either a specific supervised algorithm, or a tool used when tackling a supervised problem. The emphasis here is on understanding these models and techniques at a technical level. Here you will learn to build supervised models in Python from scratch.

decision trees handle categorical features

Can Decision Trees Handle Categorical Features?

Can Decision Trees Handle Categorical Features? Yes, Decision Trees handle categorical features naturally. Often these features are treated by first one-hot-encoding (OHE) in a preprocessing step. However, it is straightforward to extend the CART algorithm to make use of categorical features without such preprocessing. In this post, I will implement classification and regression Decision Trees capable …

Can Decision Trees Handle Categorical Features? Read More »

decision trees handle missing values

Can Decision Trees Handle Missing Values?

Can Decision Trees Handle Missing Values? Yes, Decision Trees handle missing values naturally. It is straightforward to extend the CART algorithm to support the handling of missing values. However, attention needs to be made regarding how the algorithm is implemented in code. In this post, I will implement classification and regression Decision Trees capable of dealing …

Can Decision Trees Handle Missing Values? Read More »