Exercise: Train a Decision Tree Model Using the Gini Criteria

Train a decision model using the Gini criteria, and observe the difference in model evaluations.

We'll cover the following

Task

In the “Machine Learning” lesson of the “Decision Tree Learning” chapter, we trained a decision tree using the criterion='entropy'. The task here is to retrain the decision model using Gini criteria and observe the difference in model evaluations.

Coding workspace

The provided workspace contains the required libraries and data. Let's try to code the solution for the task mentioned above.

Get hands-on with 1200+ tech skills courses.