Clustering with PyCaret
Learn how to import necessary libraries and generate datasets for clustering with PyCaret.
We'll cover the following
One of the fundamental tasks in unsupervised machine learning is clustering. This task aims to categorize instances of a given dataset in different clusters based on their common characteristics. Clustering has many practical applications in various fields such as market research, social network analysis, bioinformatics, medicine, and others. The k-means clustering method is a simple and widely used method. It is defined in the following formula:
is the number of all clusters, while represents each cluster. Our goal is to minimize , which is the measure of within-cluster variation.
There are various ways to define within-cluster variation, but the most common is squared euclidean distance as we can see in the above equation. This results in the following form of -means clustering:
Get hands-on with 1400+ tech skills courses.