This project is part of my Data Science Internship at CodeAlpha.
The objective of this project is to build a machine learning model that classifies Iris flowers into three species:
- Setosa
- Versicolor
- Virginica
The classification is performed using flower measurements such as sepal length, sepal width, petal length, and petal width.
To develop and evaluate a machine learning classification model that can predict the species of an Iris flower based on its measurements.
The Iris dataset provided by Scikit-learn was used for this project.
The dataset contains measurements of Iris flowers belonging to three different species.
- Python
- Pandas
- NumPy
- Matplotlib
- Seaborn
- Scikit-learn
- Google Colab
- GitHub
Logistic Regression was used as the classification algorithm.
The dataset was divided into:
- 80% Training Data
- 20% Testing Data
The Logistic Regression model achieved:
Accuracy: 96.67%
The model was also evaluated using:
- Classification Report
- Confusion Matrix
- Load the Iris dataset
- Explore the dataset
- Visualize the data
- Split the dataset into training and testing sets
- Train the Logistic Regression model
- Make predictions
- Evaluate model performance
- Test the model with a sample input
The trained model successfully classified the Iris flower species with an accuracy of 96.67% on the test dataset.
This project demonstrates a basic machine learning classification workflow using Python and Scikit-learn. It helped in understanding data exploration, visualization, model training, prediction, and model evaluation.
Completed as part of the Data Science Internship at CodeAlpha.