Loading evaluate.py +2 −2 Original line number Original line Diff line number Diff line Loading @@ -19,7 +19,7 @@ This table contains the best result for every user. |:-----|------|:------------| |:-----|------|:------------| '''.strip() '''.strip() USER_README_HEAD = r''' USER_README_HEAD = r''' This table contains all results for $USER in descending order of task This table contains all results for user *%s* in descending order of task performance. Result names are based on the filenames of the results with performance. Result names are based on the filenames of the results with underscores (`_`) replaced with a comma and a space for improved readability. underscores (`_`) replaced with a comma and a space for improved readability. Loading Loading @@ -52,7 +52,7 @@ if __name__ == '__main__': best_ndcg, best_result_name = max(user_results) best_ndcg, best_result_name = max(user_results) task_results.append((best_ndcg, user_name, best_result_name)) task_results.append((best_ndcg, user_name, best_result_name)) with open(os.path.join(user, 'README.md'), 'wt') as f: with open(os.path.join(user, 'README.md'), 'wt') as f: f.write(USER_README_HEAD) f.write(USER_README_HEAD % user_name) f.write('\n') f.write('\n') for ndgc, result_name in sorted(user_results, reverse=True): for ndgc, result_name in sorted(user_results, reverse=True): f.write('| %.4f | %s |\n' % (ndcg, result_name)) f.write('| %.4f | %s |\n' % (ndcg, result_name)) Loading task1/ayetiran/README.md +1 −1 Original line number Original line Diff line number Diff line This table contains all results for $USER in descending order of task This table contains all results for user *ayetiran* in descending order of task performance. Result names are based on the filenames of the results with performance. Result names are based on the filenames of the results with underscores (`_`) replaced with a comma and a space for improved readability. underscores (`_`) replaced with a comma and a space for improved readability. Loading task1/xluptak4/README.md +1 −1 Original line number Original line Diff line number Diff line This table contains all results for $USER in descending order of task This table contains all results for user *xluptak4* in descending order of task performance. Result names are based on the filenames of the results with performance. Result names are based on the filenames of the results with underscores (`_`) replaced with a comma and a space for improved readability. underscores (`_`) replaced with a comma and a space for improved readability. Loading task1/xnovot32/README.md +1 −1 Original line number Original line Diff line number Diff line This table contains all results for $USER in descending order of task This table contains all results for user *xnovot32* in descending order of task performance. Result names are based on the filenames of the results with performance. Result names are based on the filenames of the results with underscores (`_`) replaced with a comma and a space for improved readability. underscores (`_`) replaced with a comma and a space for improved readability. Loading task1/xstefan3/README.md +1 −1 Original line number Original line Diff line number Diff line This table contains all results for $USER in descending order of task This table contains all results for user *xstefan3* in descending order of task performance. Result names are based on the filenames of the results with performance. Result names are based on the filenames of the results with underscores (`_`) replaced with a comma and a space for improved readability. underscores (`_`) replaced with a comma and a space for improved readability. Loading Loading
evaluate.py +2 −2 Original line number Original line Diff line number Diff line Loading @@ -19,7 +19,7 @@ This table contains the best result for every user. |:-----|------|:------------| |:-----|------|:------------| '''.strip() '''.strip() USER_README_HEAD = r''' USER_README_HEAD = r''' This table contains all results for $USER in descending order of task This table contains all results for user *%s* in descending order of task performance. Result names are based on the filenames of the results with performance. Result names are based on the filenames of the results with underscores (`_`) replaced with a comma and a space for improved readability. underscores (`_`) replaced with a comma and a space for improved readability. Loading Loading @@ -52,7 +52,7 @@ if __name__ == '__main__': best_ndcg, best_result_name = max(user_results) best_ndcg, best_result_name = max(user_results) task_results.append((best_ndcg, user_name, best_result_name)) task_results.append((best_ndcg, user_name, best_result_name)) with open(os.path.join(user, 'README.md'), 'wt') as f: with open(os.path.join(user, 'README.md'), 'wt') as f: f.write(USER_README_HEAD) f.write(USER_README_HEAD % user_name) f.write('\n') f.write('\n') for ndgc, result_name in sorted(user_results, reverse=True): for ndgc, result_name in sorted(user_results, reverse=True): f.write('| %.4f | %s |\n' % (ndcg, result_name)) f.write('| %.4f | %s |\n' % (ndcg, result_name)) Loading
task1/ayetiran/README.md +1 −1 Original line number Original line Diff line number Diff line This table contains all results for $USER in descending order of task This table contains all results for user *ayetiran* in descending order of task performance. Result names are based on the filenames of the results with performance. Result names are based on the filenames of the results with underscores (`_`) replaced with a comma and a space for improved readability. underscores (`_`) replaced with a comma and a space for improved readability. Loading
task1/xluptak4/README.md +1 −1 Original line number Original line Diff line number Diff line This table contains all results for $USER in descending order of task This table contains all results for user *xluptak4* in descending order of task performance. Result names are based on the filenames of the results with performance. Result names are based on the filenames of the results with underscores (`_`) replaced with a comma and a space for improved readability. underscores (`_`) replaced with a comma and a space for improved readability. Loading
task1/xnovot32/README.md +1 −1 Original line number Original line Diff line number Diff line This table contains all results for $USER in descending order of task This table contains all results for user *xnovot32* in descending order of task performance. Result names are based on the filenames of the results with performance. Result names are based on the filenames of the results with underscores (`_`) replaced with a comma and a space for improved readability. underscores (`_`) replaced with a comma and a space for improved readability. Loading
task1/xstefan3/README.md +1 −1 Original line number Original line Diff line number Diff line This table contains all results for $USER in descending order of task This table contains all results for user *xstefan3* in descending order of task performance. Result names are based on the filenames of the results with performance. Result names are based on the filenames of the results with underscores (`_`) replaced with a comma and a space for improved readability. underscores (`_`) replaced with a comma and a space for improved readability. Loading