Skip to content

deepakpandey2004/iris-ml-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Iris Flower Classification 🌸

This project uses machine learning to classify Iris flower species based on four features:

  • Sepal length
  • Sepal width
  • Petal length
  • Petal width

The model was trained on the classic Iris dataset using a Random Forest Classifier and achieved 100% accuracy on the test set.


πŸ“Š Project Workflow

  • Exploratory Data Analysis (EDA)
  • Label Encoding
  • Train-Test Split (80/20)
  • Model Training using RandomForestClassifier
  • Model Evaluation (Accuracy, Confusion Matrix, Classification Report)
  • Feature Importance Visualization

πŸ“ Files Included

  • Iris_Classification_Project.py β€” Main Python script with full code
  • confusion_matrix.png β€” Model performance visualization

πŸ“¦ Libraries Used

  • Python
  • Pandas
  • Scikit-learn
  • Seaborn
  • Matplotlib

πŸ“Έ Confusion Matrix Output

Confusion Matrix


βœ… Results

  • Accuracy: 100%
  • All 3 species were correctly predicted on the test set.
  • Petal length and petal width were the most important features.

πŸš€ Author

This project was completed as part of a machine learning internship.

About

Machine Learning project to classify iris flowers using Random Forest

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages