Eran Fainman
commited on
Commit
·
84e1526
1
Parent(s):
59df494
add set_name to table
Browse files
app.py
CHANGED
@@ -117,7 +117,7 @@ def upload_results(group_email, group_name, model_name, revision, mrr10, precisi
|
|
117 |
|
118 |
df_temp_results = pd.DataFrame({'email': [group_email], 'group_name': [group_name], "model_name": [model_name],
|
119 |
"submission_date": [submission_date], "revision": [revision], "MRR@10": [mrr10],
|
120 |
-
"Precision@10": [precision10]})
|
121 |
temp_results_fn = str(uuid.uuid4()) + '.csv'
|
122 |
temp_path = os.path.join(TEMP_RESULTS_PATH, temp_results_fn)
|
123 |
df_temp_results.to_csv(temp_path, index=False)
|
@@ -136,7 +136,7 @@ def render():
|
|
136 |
refresh_data()
|
137 |
|
138 |
df_results = get_results_dataframe()
|
139 |
-
leaderboard_tab.dataframe(df_results.drop(columns=['email']))
|
140 |
|
141 |
# submission area
|
142 |
group_email = submission_tab.text_input(label="Group email", value="")
|
|
|
117 |
|
118 |
df_temp_results = pd.DataFrame({'email': [group_email], 'group_name': [group_name], "model_name": [model_name],
|
119 |
"submission_date": [submission_date], "revision": [revision], "MRR@10": [mrr10],
|
120 |
+
"Precision@10": [precision10], 'set_name': ["test set"]})
|
121 |
temp_results_fn = str(uuid.uuid4()) + '.csv'
|
122 |
temp_path = os.path.join(TEMP_RESULTS_PATH, temp_results_fn)
|
123 |
df_temp_results.to_csv(temp_path, index=False)
|
|
|
136 |
refresh_data()
|
137 |
|
138 |
df_results = get_results_dataframe()
|
139 |
+
leaderboard_tab.dataframe(df_results.drop(columns=['email']).sort_values('MRR@10', ascending=False))
|
140 |
|
141 |
# submission area
|
142 |
group_email = submission_tab.text_input(label="Group email", value="")
|