kmeans Unsupervised Machine Learning: Flat Clustering Flat clustering is where the scientist tells the machine how many categories to cluster the data into.