From b8f5683f4d0a1420018e5fe99d6b7f4162ec8418 Mon Sep 17 00:00:00 2001 From: hitoshizuku7 Date: Thu, 30 Nov 2023 16:33:36 +0900 Subject: [PATCH 1/2] Now the result can show the entire model name no matter the length of model name --- llm_judge/show_result.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llm_judge/show_result.py b/llm_judge/show_result.py index 7cef41c..061379c 100644 --- a/llm_judge/show_result.py +++ b/llm_judge/show_result.py @@ -47,7 +47,7 @@ def display_result_pairwise(args): print(f"Input file: {input_file}") df_all = pd.read_json(input_file, lines=True) print(args.model_list) - + pd.set_option('display.max_colwidth', 1000) list_res = [] # traverse df row by row for index, row in df_all.iterrows(): From 303b9abf7a74ab6d91ea0c93b7951aa0713ec8ff Mon Sep 17 00:00:00 2001 From: Hirokazu Kiyomaru Date: Fri, 1 Dec 2023 09:46:26 +0900 Subject: [PATCH 2/2] apply linter --- llm_judge/show_result.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/llm_judge/show_result.py b/llm_judge/show_result.py index 061379c..901f91d 100644 --- a/llm_judge/show_result.py +++ b/llm_judge/show_result.py @@ -15,6 +15,8 @@ "jp_bench": DATA_DIR / "jp_bench" / "model_judgment", } +pd.set_option("display.max_colwidth", 1000) + def display_result_single(args): if args.input_file is None: @@ -47,7 +49,6 @@ def display_result_pairwise(args): print(f"Input file: {input_file}") df_all = pd.read_json(input_file, lines=True) print(args.model_list) - pd.set_option('display.max_colwidth', 1000) list_res = [] # traverse df row by row for index, row in df_all.iterrows():