Machine Learning, Artificial Intelligence, Technology, Python, Data Science.
Elbow_Method(df) plt.figure(figsize = (17,8)) plt.plot(K, inertia, 'bx-') plt.xlabel("K: number of clusters") plt.ylabel("Inertia") plt.title("K-Means: Elbow Method") plt.show() K-Means is a non-deterministic approach and it’s randomness comes in Step 1, where all observations are randomly assigned