April 18, 2024, 2:48 p.m. | Mohammad-Ali A'RÂBI

DEV Community dev.to

This article is a simple example of how to use Scikit-Learn to create a simple classifier based on the Iris dataset.





Installation


In this example, we use Python version 3.12.0 together with virtualenv. Ubuntu 24.04 comes with Python 3.12 pre-installed.

To install Python 3.12 on MacOS, you can use Homebrew:



brew install python@3.12


On Windows, you can use the official Python installer from the Python website.


Later we also use Docker to run the Python code in a container. The …

article classifier create dataset docker example hello hello world homebrew install installation learn machinelearning macos python python 3 scikit scikit-learn simple together ubuntu world

AI Research Scientist

@ Vara | Berlin, Germany and Remote

Data Architect

@ University of Texas at Austin | Austin, TX

Data ETL Engineer

@ University of Texas at Austin | Austin, TX

Lead GNSS Data Scientist

@ Lurra Systems | Melbourne

Lead Data Scientist, Commercial Analytics

@ Checkout.com | London, United Kingdom

Data Engineer I

@ Love's Travel Stops | Oklahoma City, OK, US, 73120