XPMaster commited on
Commit
e77f587
·
1 Parent(s): 1357470

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -53,7 +53,7 @@ if st.session_state.toggle:
53
 
54
  # Slider for Advanced in the sidebar
55
  st.sidebar.header('K-Means Parameters')
56
- n_clusters_advanced = st.sidebar.slider('Number of Clusters (K)', 1, 10, n_clusters_advanced)
57
 
58
 
59
  st.markdown("""
@@ -68,7 +68,7 @@ st.markdown("""
68
  with tab1:
69
  st.write("""
70
  ### What is Clustering?
71
- #### Clustering with K-Means is a machine learning concept like tidying a messy room by grouping similar items, but for data instead of physical objects.
72
  """)
73
 
74
  # K-Means Algorithm
@@ -117,7 +117,7 @@ with tab1:
117
 
118
  st.write("""
119
  ### Visualizing Groups
120
- #### Here are the groups from our tidying method. Each color has a number at its center, representing its group.
121
  """)
122
  #st.pyplot(fig)
123
  st.plotly_chart(fig)
@@ -128,7 +128,7 @@ with tab1:
128
  # Closing Note
129
  st.write("""
130
  ### Wrap Up
131
- #### Just as sorting toys in a room, we group flowers by features; adjust the data to pick a flower and set how many boxes (groups) you want to use.
132
  """)
133
 
134
  with tab2:
 
53
 
54
  # Slider for Advanced in the sidebar
55
  st.sidebar.header('K-Means Parameters')
56
+ n_clusters_advanced = st.sidebar.slider('Number of Clusters (K)', 1, 8, n_clusters_advanced)
57
 
58
 
59
  st.markdown("""
 
68
  with tab1:
69
  st.write("""
70
  ### What is Clustering?
71
+ ##### Clustering with K-Means is a machine learning concept like tidying a messy room by grouping similar items, but for data instead of physical objects.
72
  """)
73
 
74
  # K-Means Algorithm
 
117
 
118
  st.write("""
119
  ### Visualizing Groups
120
+ ##### Here are the groups from our tidying method. Each color has a number at its center, representing its group.
121
  """)
122
  #st.pyplot(fig)
123
  st.plotly_chart(fig)
 
128
  # Closing Note
129
  st.write("""
130
  ### Wrap Up
131
+ ##### Just as sorting toys in a room, we group flowers by features; adjust the data to pick a flower and set how many boxes (groups) you want to use.
132
  """)
133
 
134
  with tab2: