Corey Morris
commited on
Commit
•
7fc9618
1
Parent(s):
280db99
removed commented code
Browse files
app.py
CHANGED
@@ -120,37 +120,6 @@ def find_top_differences_table(df, target_model, closest_models, num_differences
|
|
120 |
unique_top_differences_tasks = list(set(top_differences_table['Task'].tolist()))
|
121 |
return top_differences_table, unique_top_differences_tasks
|
122 |
|
123 |
-
|
124 |
-
# def find_top_differences_table(df, target_model, closest_models, num_differences=10, exclude_columns=['Parameters', 'organization']):
|
125 |
-
# # Drop specified columns and create a new DataFrame
|
126 |
-
# new_df = df.drop(columns=exclude_columns)
|
127 |
-
|
128 |
-
# # Compute differences between target model and closest models, taking absolute values
|
129 |
-
# differences = new_df.loc[closest_models].sub(new_df.loc[target_model]).abs()
|
130 |
-
|
131 |
-
# # Unstack the differences
|
132 |
-
# unstacked_differences = differences.unstack()
|
133 |
-
|
134 |
-
# # Convert object types to numeric, ignoring errors to leave non-convertible elements as NaN
|
135 |
-
# unstacked_differences = pd.to_numeric(unstacked_differences, errors='coerce')
|
136 |
-
|
137 |
-
# # Find the top num_differences
|
138 |
-
# top_differences = unstacked_differences.nlargest(num_differences)
|
139 |
-
|
140 |
-
# # Convert the top differences to a DataFrame for display
|
141 |
-
# top_differences_table = pd.DataFrame({
|
142 |
-
# 'Task': [idx[0] for idx in top_differences.index],
|
143 |
-
# 'Difference': top_differences.values
|
144 |
-
# })
|
145 |
-
|
146 |
-
# # Ensure that only unique tasks are returned
|
147 |
-
# unique_top_differences_tasks = list(set(top_differences_table['Task'].tolist()))
|
148 |
-
|
149 |
-
# return top_differences_table, unique_top_differences_tasks
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
data_provider = ResultDataProcessor()
|
155 |
|
156 |
# st.title('Model Evaluation Results including MMLU by task')
|
|
|
120 |
unique_top_differences_tasks = list(set(top_differences_table['Task'].tolist()))
|
121 |
return top_differences_table, unique_top_differences_tasks
|
122 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
123 |
data_provider = ResultDataProcessor()
|
124 |
|
125 |
# st.title('Model Evaluation Results including MMLU by task')
|