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.
- 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
Iris_Classification_Project.pyβ Main Python script with full codeconfusion_matrix.pngβ Model performance visualization
- Python
- Pandas
- Scikit-learn
- Seaborn
- Matplotlib
- Accuracy: 100%
- All 3 species were correctly predicted on the test set.
- Petal length and petal width were the most important features.
This project was completed as part of a machine learning internship.
