🤖 Iris classification with Scikit-learn
iris-classification is a simple Python project that demonstrates how to classify the Iris dataset using Scikit-learn. It loads the classic Iris dataset, splits it into training and testing sets, trains a Perceptron model, and evaluates its accuracy and classification report. This project was written for educational purposes, created while learning the basics of machine learning and classification algorithms.
This project uses Poetry to manage dependencies and virtual environments.
- Install Poetry (if you don’t have it already):
curl -sSL https://install.python-poetry.org | python3 -or follow the instructions on the official Poetry site.
- Clone this repository (or download the code):
git clone https://github.com/ashkanfeyzollahi/iris-classification.git
cd iris-classification- Install dependencies and create a virtual environment:
poetry installThis will create a virtual environment and install scikit-learn and any other needed packages.
- Run the script:
poetry run python iris_classification.pyYou should see output showing the accuracy and classification report for the Iris dataset.