K-Means Clustering (ML_CG_2)

This function groups similar data points into K clusters by iteratively assigning each data point to the nearest center and updating the cluster centers based on the mean of the assigned data points.

Last updated