Creating a KMeans cluster

So, what exactly is clustering and when might it be helpful? Let’s start with a very simple example. Imagine we have a group of people for whom we want to make T-shirts. We can make a T-shirt for each one of them in whatever size is required. The main restriction is that we can only make one size. The sizes are as follows: [1, 2, 3, 4, 5, 7, 9, 11]. Think about how we might tackle this problem. We’ll use the KMeans algorithm for that, so let’s start right away, as follows:

Get hands-on with 1200+ tech skills courses.