nazneen commited on
Commit
76e2fde
·
1 Parent(s): 3d8ee64

adding parquets

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -258,14 +258,14 @@ if __name__ == "__main__":
258
  if run_kmeans == 'True':
259
  merged = kmeans(data_df,num_clusters=num_clusters)
260
  with lcol:
261
- st.markdown('<h3>Error Slices</h3>',unsafe_allow_html=True)
262
  dataframe = merged[['content', 'label', 'pred', 'loss', 'cluster']].sort_values(
263
  by=['loss'], ascending=False)
264
  table_html = dataframe.to_html(
265
  columns=['content', 'label', 'pred', 'loss', 'cluster'], max_rows=50)
266
  # table_html = table_html.replace("<th>", '<th align="left">') # left-align the headers
267
  with st.expander("How to read the table:"):
268
- st.markdown("* The table displays model error slices on the test set, sorted by loss.")
269
  st.markdown("* Each row is an input example that includes the label, model pred, loss, and error cluster.")
270
  st.write(dataframe,width=900, height=300)
271
 
 
258
  if run_kmeans == 'True':
259
  merged = kmeans(data_df,num_clusters=num_clusters)
260
  with lcol:
261
+ st.markdown('<h3>Error Slices (Subset of evaluation dataset the model performs poorly)</h3>',unsafe_allow_html=True)
262
  dataframe = merged[['content', 'label', 'pred', 'loss', 'cluster']].sort_values(
263
  by=['loss'], ascending=False)
264
  table_html = dataframe.to_html(
265
  columns=['content', 'label', 'pred', 'loss', 'cluster'], max_rows=50)
266
  # table_html = table_html.replace("<th>", '<th align="left">') # left-align the headers
267
  with st.expander("How to read the table:"):
268
+ st.markdown("* The table displays model error slices on the evaluation dataset, sorted by loss.")
269
  st.markdown("* Each row is an input example that includes the label, model pred, loss, and error cluster.")
270
  st.write(dataframe,width=900, height=300)
271