My Decision Tree Algorithm
My Decision Tree Algorithm
ALGORITHM
DECISION TREE
1. Entropy
2. Information gain
Formula:
EXAMPLE
Gini index :
Split Data
Divide the dataset into training and test sets to evaluate
performance on unseen data.
Make Predictions
Use the decision tree to predict outcomes for the test set.
Compare Predictions
Compare the tree’s predictions with the actual outcomes
from the test set.
Calculate Metrics
Measure performance using metrics like accuracy, precision,
recall, or F1 score.
Analyze and Improve
Check for overfitting, adjust parameters and improve if
needed.
THANK YOU