Articles → MACHINE LEARNING → Gini Index In Machine Learning
Gini Index In Machine Learning
Purpose
Example Dataset
| ID | Outlook | Temperature | Humidity | Windy | Play Tennis |
|---|
| 1 | Sunny | Hot | High | False | No |
| 2 | Sunny | Hot | High | True | No |
| 3 | Overcast | Hot | High | False | Yes |
| 4 | Rain | Mild | High | False | Yes |
| 5 | Rain | Cool | Normal | False | Yes |
| 6 | Rain | Cool | Normal | True | No |
| 7 | Overcast | Cool | Normal | True | Yes |
| 8 | Sunny | Mild | High | False | No |
Purpose Of Calculating The Parent Gini Index
Formula
| Parameter | Description |
|---|
| D | The dataset of the node. |
| C | The number of distinct values in the dependent variable. |
| Pi | The number of instances (rows) of a particular class value in the target (dependent) variable. |
How To Calculate Parent Gini Index?
Weighted Gini (Humidity)
Pure And Impure Nodes
| Posted By - | Karan Gupta |
| |
| Posted On - | Tuesday, June 17, 2025 |
| |
| Updated On - | Monday, August 18, 2025 |