Decision Tree using Python Scikit

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-

Decision Tree in Python

Decision Tree in Python

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.

clf1clf2clf3clf4clf5clf6clf7

dt1dt2dt3dt4

 

 

Cheers!

One thought on “Decision Tree using Python Scikit

  1. Pingback: Learn Python Step by Step | RP's Blog on data science