Corey Morris commited on
Commit
5129f48
·
1 Parent(s): 8488477

Improving clarity. Moved MMLU average column to a more appropriate spot

Browse files
Files changed (1) hide show
  1. app.py +9 -4
app.py CHANGED
@@ -51,11 +51,16 @@ class MultiURLData:
51
  # create a new column that averages the results from each of the columns with a name that start with MMLU
52
  data['MMLU_average'] = data.filter(regex='MMLU').mean(axis=1)
53
 
54
- # move the MMLU_average column to the the second column in the dataframe
55
  cols = data.columns.tolist()
56
- cols = cols[:1] + cols[-1:] + cols[1:-1]
57
  data = data[cols]
58
- data
 
 
 
 
 
59
 
60
  return data
61
 
@@ -68,7 +73,7 @@ data_provider = MultiURLData()
68
 
69
  st.title('Hugging Face Model Benchmarking including MMLU by task data')
70
 
71
- filters = st.checkbox('Add filters')
72
 
73
  # Create defaults for selected columns and models
74
  selected_columns = data_provider.data.columns.tolist()
 
51
  # create a new column that averages the results from each of the columns with a name that start with MMLU
52
  data['MMLU_average'] = data.filter(regex='MMLU').mean(axis=1)
53
 
54
+ # move the MMLU_average column to the third column in the dataframe
55
  cols = data.columns.tolist()
56
+ cols = cols[:2] + cols[-1:] + cols[2:-1]
57
  data = data[cols]
58
+
59
+ # # move the MMLU_average column to the the second column in the dataframe
60
+ # cols = data.columns.tolist()
61
+ # cols = cols[:1] + cols[-1:] + cols[1:-1]
62
+ # data = data[cols]
63
+ # data
64
 
65
  return data
66
 
 
73
 
74
  st.title('Hugging Face Model Benchmarking including MMLU by task data')
75
 
76
+ filters = st.checkbox('Select Models and Columns')
77
 
78
  # Create defaults for selected columns and models
79
  selected_columns = data_provider.data.columns.tolist()