€15.83 – €18.48
How it works:
- Step 1: The algorithm picks the best feature to split the data on (based on a certain criterion like Gini impurity or information gain).
- Step 2: It divides the data into smaller groups, creating branches.
- Step 3: This process repeats recursively until the data is classified into distinct categories or leaves.
Simple Example:
Imagine a decision tree deciding whether to go outside based on weather:
- If it’s raining, stay inside (leaf).
- If it’s sunny and the temperature is above 25°C, go outside (leaf).
- Otherwise, it might be an ambiguous decision and the tree will continue checking other features, like wind speed.