An open API service indexing awesome lists of open source software.

https://github.com/kozuedoingregression/iris-species-classification

Machine Learning Model for Iris Species Classification based on Measurements
https://github.com/kozuedoingregression/iris-species-classification

flask iris-classification iris-dataset machine-learning python3

Last synced: 5 months ago
JSON representation

Machine Learning Model for Iris Species Classification based on Measurements

Awesome Lists containing this project

README

          

# Iris Species Classification Web App 🌸

A Flask-based web application that predicts Iris flower species using machine learning. The application uses a trained model to classify Iris flowers into three species: Setosa, Versicolor, and Virginica, based on their sepal and petal measurements.

## Features ✨

- Interactive web interface for input measurements
- Real-time predictions using machine learning
- Simple and intuitive design

## Demo πŸš€

![Application Demo](/demos/demo.gif)

## Installation πŸ› οΈ

1. Clone the repository:
```bash
git clone https://github.com/kozuedoingregression/Iris-Species-Classification.git
cd Iris-Species-Classification
```

2. Create and activate a virtual environment:
```bash
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
```

3. Install required packages:
```bash
pip install -r requirements.txt
```

## Usage πŸ’»

1. Start the Flask application:
```bash
python app.py
```

2. Enter the following measurements in centimeters:
- Sepal Length
- Sepal Width
- Petal Length
- Petal Width

3. Click "Predict" to see the classification result

4. Run tests
```bash
python -m unittest testing.py
```

## Project Structure πŸ“

```
iris-classification/
β”œβ”€β”€ database/
β”‚ β”œβ”€β”€ Iris.xls
β”œβ”€β”€ model/
β”‚ β”œβ”€β”€IrisFlowerClaffification.pkl
β”œβ”€β”€ templates/
β”‚ β”œβ”€β”€ index.html
β”œβ”€β”€ app.py # Flask application
β”œβ”€β”€ requirements.txt
β”œβ”€β”€ testing.py
```
## Model Performance πŸ“Š

- The model was trained using scikit-learn's Logistic Regression on the [Iris Dataset](https://www.kaggle.com/datasets/saurabh00007/iriscsv).
- Accuracy: 97%
- [NoteBook](https://www.kaggle.com/code/shashanknecrothapa/iris-flower-classification)

## Technical Details πŸ”§

- **Framework**: Flask
- **Machine Learning**: scikit-learn
- **Model**: Logistic Regression
- **Dataset**: [Iris Dataset](https://www.kaggle.com/datasets/saurabh00007/iriscsv)
- **Frontend**: HTML, CSS, JavaScript

## Requirements πŸ“‹

- Python 3.8+
- Flask
- scikit-learn
- pandas
- numpy

## Development πŸ‘¨β€πŸ’»

To contribute to this project:

1. Fork the repository
2. Create a new branch
3. Make your changes
4. Submit a pull request

## Contact πŸ“§

For questions or feedback, please contact:
- X: [kozue](https://x.com/0xaa248)
- GitHub: [kozuedoingregression](https://github.com/kozuedoingregression)