A beginner-friendly Machine Learning classification project built using Python and the Iris Dataset.
This project demonstrates the complete workflow of supervised learning including:
- Data loading
- Data preprocessing
- Train-test splitting
- Model training
- Prediction
- Accuracy evaluation
The main goal of this project is to build a simple AI classification model using Machine Learning.
The project uses the K-Nearest Neighbors (KNN) classification algorithm to classify iris flowers into different species based on their measurements.
- Python
- Pandas
- NumPy
- Scikit-learn
Data_Classification_Using_AI/
│
├── assets/
│ ├── output_5_rows.png
│ ├── output_discription_and_info.png
│ ├── output_missing_values.png
│ └── output.png
│
├── data_classifier.py
├── README.md
└── requirements.txtInstall required libraries using:
pip install pandas numpy scikit-learnOr install using requirements file:
pip install -r requirements.txtpython data_classifier.pyThis project uses the built-in Iris Dataset from Scikit-learn.
Features:
- Sepal Length
- Sepal Width
- Petal Length
- Petal Width
Target:
- Iris flower species classification
KNN is a supervised learning classification algorithm that classifies data points based on their nearest neighbors.
- Import Libraries
- Load Dataset
- Explore Dataset
- Check Missing Values
- Split Dataset
- Scale Features
- Train Model
- Make Predictions
- Evaluate Accuracy
The model achieved:
Accuracy: 100%Training Data Shape: (120, 4)
Testing Data Shape: (30, 4)
Model Accuracy:
100.0 %By completing this project, you will understand:
- Supervised Learning
- Data Classification
- Feature Scaling
- Train-Test Split
- Machine Learning Workflow
- Model Evaluation
✅ Completed
Developed as part of the DecodeLabs Artificial Intelligence Industrial Training Program.
This project is open-source and free to use for learning purposes.



