If you are not familiar with Decision Trees, please read this article first.
First let’s look at a very simple example on the Iris data-
Now let’s look at slightly more complex data-
Let’s first build a logistic regression model in Python using machine learning library Scikit. Please read here about the dataset and dummy coding.