-
Notifications
You must be signed in to change notification settings - Fork 406
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
221b2b0
commit e39924e
Showing
6 changed files
with
11 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
@author:XuMing([email protected]) | ||
@description: Evaluate MTEB benchmark | ||
pip install mteb | ||
pip install C_MTEB | ||
code modified from https://github.com/FlagOpen/FlagEmbedding | ||
""" | ||
|
@@ -108,7 +108,6 @@ def output_markdown(tasks_results, model_names, save_file): | |
write_line += f" {round(sum(cqa_res) / len(cqa_res), 2)} |" | ||
all_res.append(round(sum(cqa_res) / len(cqa_res), 2)) | ||
|
||
# if len(all_res) == len(type_results.keys()): | ||
if len(all_res) == task_cnt: | ||
write_line += f" {round(sum(all_res) / len(all_res), 2)} |" | ||
task_type_res[t_type][model] = all_res | ||
|
@@ -139,7 +138,7 @@ def output_markdown(tasks_results, model_names, save_file): | |
write_line += f" {round(sum(all_res) / len(all_res), 2)} |" | ||
|
||
f.write(write_line + ' \n') | ||
|
||
print(f"Save results to {save_file}") | ||
|
||
def get_args(): | ||
parser = argparse.ArgumentParser() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters