A beginner-friendly Streamlit web application to classify Iris flower species using a Random Forest model. Built for fast, interactive predictions and educational exploration of classic machine learning concepts.
- Interactive Input: Adjust sepal and petal measurements with sidebar sliders.
- Live Predictions: Instantly predict the Iris species and view probability scores.
- Dataset Explorer: Preview the Iris dataset and feature statistics.
- Feature Importance: Visualize which features matter most in classification.
- Clean UI: Simple, responsive dashboard for desktop and mobile.
Try the app instantly, no installation required:
https://iris-flower-classifier-app-ckb78utfqdnawpqvn2amy6.streamlit.app/
Add images to the
images/
folder and update paths below.
- Python 3.7+
- Streamlit โ Interactive dashboards
- Pandas โ Data manipulation
- Scikit-Learn โ Random Forest classifier
- Matplotlib โ Plotting and visualization
-
Clone the repository:
git clone https://github.com/muzammaldeveloper/iris-flower-classifier-streamlit.git cd iris-flower-classifier-streamlit
-
Install dependencies:
pip install -r requirements.txt
Launch the app locally:
streamlit run app.py
- Use the sidebar sliders to input flower features.
- View the prediction and probabilities instantly.
- Explore dataset and feature importance charts.
iris-flower-classifier-streamlit/
โโโ app.py # Main Streamlit app
โโโ data/
โ โโโ iris.csv # Iris dataset
โโโ images/
โ โโโ app_home.png # Screenshot: Home
โ โโโ prediction_output.png # Screenshot: Prediction
โ โโโ feature_importance.png # Screenshot: Feature importance chart
โโโ requirements.txt # Python dependencies
โโโ README.md # Project documentation
- Add model comparison (SVM, KNN, etc.)
- Enable model retraining with custom data
- Deploy app on cloud platforms (Streamlit Cloud, Hugging Face Spaces)
- Add multi-language support
- Improve mobile responsiveness
Contributions are welcome!
If you find a bug or want to add a feature:
- Fork this repo.
- Create a new branch (
git checkout -b feature-name
). - Commit your changes with clear messages.
- Open a pull request describing your changes.
For questions or suggestions, feel free to open an issue.
- GitHub: muzammaldeveloper
- Email: muzammal.contect@gmail.com
Muzammal Hussain
Passionate AI developer and community builder from Pakistan. Focused on making machine learning accessible for everyone, especially learners in low-resource environments.
Connect, learn, and build with me!
Made with โค๏ธ using Python and Streamlit.