Eran Fainman commited on
Commit
fa2db7c
·
1 Parent(s): 5254230

add set_name to table

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -115,9 +115,9 @@ def upload_results(group_email, group_name, model_name, revision, mrr10, precisi
115
  if not os.path.exists(TEMP_RESULTS_PATH):
116
  os.mkdir(TEMP_RESULTS_PATH)
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)
 
115
  if not os.path.exists(TEMP_RESULTS_PATH):
116
  os.mkdir(TEMP_RESULTS_PATH)
117
 
118
+ df_temp_results = pd.DataFrame({'email': [group_email], 'set_name': ["test set"], 'group_name': [group_name],
119
+ "model_name": [model_name], "submission_date": [submission_date],
120
+ "revision": [revision], "MRR@10": [mrr10], "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)