Decision Tree, Random Forest and XGBoost demystified with python code

Maciej Zalwert
9 min readFeb 5, 2022
Photo by thiago japyassu from Pexels

In this article, I introduce some of the most common used algorithm in machine learning world — decision tree, random forest and XGBoost.

All of them may be used both for regression (where we want to predict a continuous quantity, e.g. predicting price of house) and classification (where we want to predict a discrete class label, e.g…

--

--

Maciej Zalwert

Experienced in building data-intensive solutions for diverse industries