Skip to content

Latest commit

 

History

History
43 lines (33 loc) · 944 Bytes

File metadata and controls

43 lines (33 loc) · 944 Bytes

Data Classification Using AI 🤖

Project 2 | DecodeLabs Industrial Training | Batch 2026 Developer: Mayar Yasser

Overview

A machine learning classification model built using the KNN algorithm to classify Iris flowers into 3 species based on their measurements.

Dataset

  • Name: Iris Dataset
  • Samples: 150 flowers
  • Classes: Setosa, Versicolor, Virginica
  • Features: Sepal Length, Sepal Width, Petal Length, Petal Width

Pipeline

  • Data Loading & Feature Scaling (StandardScaler)
  • Train-Test Split (80% Training / 20% Testing)
  • KNN Classification (n_neighbors=5)
  • Confusion Matrix & F1 Score

How to Run

pip install scikit-learn pandas matplotlib seaborn
python classifier.py

Results

  • Confusion Matrix saved as confusion_matrix.png
  • F1 Score: ~97%

Tools Used

  • Python
  • scikit-learn
  • matplotlib
  • seaborn

Screenshot

Output

Developer

Mayar Yasser | DecodeLabs Batch 2026