To determine the optimal number of clusters in the K-Means algorithm, one commonly uses:
Trial and error only
An elbow plot
Hierarchical clustering
Density-based clustering

Machine Learning Algorithms Exercises are loading ...