While using the k-mean algorithm for the data mining process, you will have to find a target number which is ‘k’ and it is the number of centroids you need in the dataset. Actually, this algorithm tries to group some unlabeled points into a ‘k’ number of clusters. So, ‘k’ stands for the number of clusters you need by the end.