Master LLMs with our FREE course in collaboration with Activeloop & Intel Disruptor Initiative. Join now!


Clustering with Scikit-Learn: a Gentle Introduction
Artificial Intelligence   Data Science   Latest   Machine Learning

Clustering with Scikit-Learn: a Gentle Introduction

Author(s): Riccardo Andreoni

Originally published on Towards AI.

Learn how to apply state-of-the-art clustering algorithms efficiently and boost your machine-learning skills.
Image source:

You find yourself in a vast library with countless books scattered on the shelves. Each book is a unique piece of information, and your goal is to organize them based on their characteristics. As you wander through the shelves, you notice that some books share similar themes or topics. You are certainly capable of identifying groups of related books. This is called clustering.

In Data Science, clustering is used to group similar instances together, discovering patterns, hidden structures, and fundamental relationships within a dataset.

In this introduction guide, I will formally introduce you to clustering in Machine Learning. I will present the theory of the most used clustering models, and we will understand how to practically implement them with Scikit-Learn. With a hands-on approach, you will find plenty of code and plots to familiarize yourself with clustering: a must-have tool for every data scientist.

Clustering in Machine Learning stands as a fundamental unsupervised learning task, different from its supervised counterparts due to the lack of labeled data. Unlike classification algorithms, such as Random Forest or Support Vector Machines, whose training relies on labeled data points, clustering algorithms work on unlabeled data, aiming to discover the structures and patterns inside the dataset.

As… Read the full blog for free on Medium.

Join thousands of data leaders on the AI newsletter. Join over 80,000 subscribers and keep up to date with the latest developments in AI. From research to projects and ideas. If you are building an AI startup, an AI-related product, or a service, we invite you to consider becoming a sponsor.

Published via Towards AI

Feedback ↓