bushra-kh commited on
Commit
c31dbee
·
verified ·
1 Parent(s): 5f242a8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -6
app.py CHANGED
@@ -30,12 +30,6 @@ for k in K_range:
30
  kmeans.fit(X_scaled)
31
  inertia.append(kmeans.inertia_)
32
 
33
- plt.figure()
34
- plt.plot(K_range, inertia, marker='o')
35
- plt.xlabel("Number of Clusters (k)")
36
- plt.ylabel("Inertia")
37
- plt.title("Elbow Method")
38
- plt.show()
39
 
40
  optimal_k = 4
41
 
 
30
  kmeans.fit(X_scaled)
31
  inertia.append(kmeans.inertia_)
32
 
 
 
 
 
 
 
33
 
34
  optimal_k = 4
35