Skip to content
This repository was archived by the owner on Dec 2, 2025. It is now read-only.

ashkanfeyzollahi/iris-classification

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Iris Classification

🤖 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.

Usage

Setup with Poetry

This project uses Poetry to manage dependencies and virtual environments.

  1. 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.

  1. Clone this repository (or download the code):
git clone https://github.com/ashkanfeyzollahi/iris-classification.git
cd iris-classification
  1. Install dependencies and create a virtual environment:
poetry install

This will create a virtual environment and install scikit-learn and any other needed packages.

  1. Run the script:
poetry run python iris_classification.py

You should see output showing the accuracy and classification report for the Iris dataset.

Releases

No releases published

Packages

No packages published

Languages