Iris Flower Classification with Comparative Machine Learning ModelsIris Flower Classification with Comparative Machine Learning Models
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started
Task 1 of my Data Science internship with @Oasis Infobyte: Iris Flower Classification 🌸
I built a model that identifies an iris species (Setosa, Versicolor or Virginica) from four flower measurements.
What I did: • Explored the data (shape, nulls, statistics) and visualised it with pairplots, box plots and a correlation heatmap • Trained and compared 5 models: Logistic Regression, KNN, Decision Tree, Random Forest and SVM • Evaluated each with accuracy, confusion matrices and classification reports
Key findings: ✅ SVM (RBF) performed best: 96.7% cross-validated accuracy and 96.7% on the test set ✅ Petal length and petal width are by far the most discriminative features ✅ Setosa is perfectly separable. Every mistake was a Versicolor/Virginica mix-up
With only 30 test samples, one flower changes accuracy by 3.3 points, so I used 5-fold cross-validation to pick the winner instead of trusting a single split.
Code, notebook and charts: [GitHub link]
#oasisinfobyte #datascience #machinelearning #python #scikitlearn #internship
Post image
Post image
Post image
Post image
Back to feed
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started