Skip to content

"A Scikit-learn implementation of a Decision Tree Classifier on the Iris dataset with visualization and performance analysis."

License

Notifications You must be signed in to change notification settings

Tech-Nomadic-X/decision-tree-classifier-iris

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌳 Decision Tree Implementation using Scikit-learn

📘 Project Overview

This project demonstrates how to build and visualize a Decision Tree Classifier using Scikit-learn. The model is trained on the Iris dataset to classify flowers into three species based on features such as petal and sepal length and width.

🧰 Tools and Libraries

  • Python
  • Scikit-learn
  • Pandas
  • Matplotlib & Seaborn
  • Jupyter Notebook

📊 Visualizations

  • Pairplot to understand feature distribution
  • Decision Tree plot to visualize model logic

📈 Model Performance

  • Classifier trained using entropy criterion and depth-limited to 3
  • Accuracy score and classification report generated
  • High interpretability through tree visualization

✅ Results

The model performs well on the test set and provides interpretable visual splits of decision logic.

📁 Files

  • decision_tree_implementation.ipynb: Main notebook with code, visualization, and analysis

🚀 How to Run

  1. Clone the repository
  2. Open the notebook in Jupyter or VSCode
  3. Run all cells from top to bottom

Results

The model achieves high accuracy on the Iris dataset and provides clear visualization of the decision-making process.


Feel free to explore and modify the notebook to improve or apply it on different datasets.


License

This project is open-source and available for educational purposes.

📌 Conclusion

Decision Trees are a simple yet powerful tool in machine learning. This project shows how easy it is to implement and understand them with real-world datasets.

______Author:- Bhooma Anand

About

"A Scikit-learn implementation of a Decision Tree Classifier on the Iris dataset with visualization and performance analysis."

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published