Ben Burtenshaw commited on
Commit
0d12531
·
1 Parent(s): 1f73cff

smaller plots

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -35,9 +35,9 @@ def main(
35
  # For reproducibility
36
  n_clusters = int(n_clusters)
37
  fig1, ax1 = plt.subplots()
38
- fig1.set_size_inches(18, 7)
39
  fig2, ax2 = plt.subplots()
40
- fig2.set_size_inches(18, 7)
41
  # The 1st subplot is the silhouette plot
42
  # The silhouette coefficient can range from -1, 1 but in this example all
43
  # lie within [-0.1, 1]
@@ -136,7 +136,7 @@ def main(
136
  )
137
  return fig1, fig2
138
 
139
- title = '''<h1 style='text-align: center'>Selecting the number of clusters with silhouette analysis on KMeans clustering</h1>'''
140
  description = """
141
  This app demonstrates a silhouette analysis for KMeans clustering on sample data.
142
 
 
35
  # For reproducibility
36
  n_clusters = int(n_clusters)
37
  fig1, ax1 = plt.subplots()
38
+ fig1.set_size_inches(9, 4)
39
  fig2, ax2 = plt.subplots()
40
+ fig2.set_size_inches(9, 4)
41
  # The 1st subplot is the silhouette plot
42
  # The silhouette coefficient can range from -1, 1 but in this example all
43
  # lie within [-0.1, 1]
 
136
  )
137
  return fig1, fig2
138
 
139
+ title = '''# Selecting the number of clusters with silhouette analysis on KMeans clustering 📊'''
140
  description = """
141
  This app demonstrates a silhouette analysis for KMeans clustering on sample data.
142