Skip to content

This notebook uses classic machine learning classifiers to identify Iris flower species based on sepal and petal features. It compares Decision Tree, SVM, KNN, and Naive Bayes performance on the well-known Iris dataset.

License

Notifications You must be signed in to change notification settings

lujunqueira/classification-iris-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 classic machine learning classifiers to identify Iris flower species based on sepal and petal measurements from the well-known Iris dataset (scikit-learn built-in). It compares the performance of four supervised algorithms.

Objective

To train and evaluate models that classify iris flowers into three species—setosa, versicolor, and virginica—based on flower measurements.

Algorithms Used

  • Decision Tree
  • Support Vector Machine (SVM)
  • K-Nearest Neighbors (KNN)
  • Naive Bayes

Workflow

  • Load and inspect the dataset
  • Split data into training and test sets
  • Apply feature scaling when needed
  • Train each model
  • Generate predictions and evaluation metrics
  • Visualize results with confusion matrices

Evaluation Metrics

  • Classification report (precision, recall, f1-score)
  • Accuracy
  • Confusion matrix (via heatmap)

Files

  • Iris_Flowers.ipynb — main notebook
  • Iris_Flowers.pdf — exported version for non-technical viewers

Tools & Libraries

  • Python 3
  • scikit-learn
  • pandas, NumPy
  • seaborn, matplotlib

License

This project is released under the MIT License.

About

This notebook uses classic machine learning classifiers to identify Iris flower species based on sepal and petal features. It compares Decision Tree, SVM, KNN, and Naive Bayes performance on the well-known Iris dataset.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published