Remove "Лог файл" column from report

Remove the "Лог файл" (Log file) column from the report generation as it's no longer needed. This simplifies the report structure and removes unused functionality.
This commit is contained in:
second_constantine 2026-01-26 22:40:44 +03:00
parent ec038053ec
commit 25e0a2a96a
220 changed files with 7 additions and 11 deletions

View File

@ -48,8 +48,7 @@ class ReportGenerator:
"ROUGE-2": "ROUGE-2",
"ROUGE-L": "ROUGE-L",
"Code Similarity": "Code Similarity",
"Время (с)": "Время (с)",
"Лог файл": "Лог файл"
"Время (с)": "Время (с)"
}
]
@ -64,8 +63,7 @@ class ReportGenerator:
"ROUGE-2": "-",
"ROUGE-L": "-",
"Code Similarity": "-",
"Время (с)": "-",
"Лог файл": "-"
"Время (с)": "-"
})
else:
# Извлекаем все метрики из результата
@ -84,17 +82,16 @@ class ReportGenerator:
"ROUGE-2": f"{rouge_scores.get('rouge2', 0):.3f}" if rouge_scores else "-",
"ROUGE-L": f"{rouge_scores.get('rougeL', 0):.3f}" if rouge_scores else "-",
"Code Similarity": f"{code_sim:.3f}" if code_sim else "-",
"Время (с)": f"{result['latency']:.2f}",
"Лог файл": f"{results['benchmark_name']}_{result['test_case']}.txt"
"Время (с)": f"{result['latency']:.2f}"
})
f.write("## Результаты тестов\n\n")
f.write("| Тест | F1-Score | Levenshtein | BLEU | ROUGE-1 | ROUGE-2 | ROUGE-L | Code Similarity | Время (с) | Лог файл |\n")
f.write("|--|--|--|--|--|--|--|--|--|--|\n")
f.write("| Тест | F1-Score | Levenshtein | BLEU | ROUGE-1 | ROUGE-2 | ROUGE-L | Code Similarity | Время (с) |\n")
f.write("|--|--|--|--|--|--|--|--|--|\n")
for result in results['results']:
if 'error' in result:
f.write(f"| {result['test_case']} | Ошибка | - | - | - | - | - | - | - | - |\n")
f.write(f"| {result['test_case']} | Ошибка | - | - | - | - | - | - | - |\n")
else:
# Извлекаем все метрики из результата
f1_score = result.get('f1_score', result.get('score', 0))
@ -119,8 +116,7 @@ class ReportGenerator:
f"{rouge2_display} | "
f"{rougeL_display} | "
f"{code_sim_display} | "
f"{result['latency']:.2f} | "
f"{results['benchmark_name']}_{result['test_case']}.txt |\n")
f"{result['latency']:.2f} |\n")
f.write("\n\n")

Some files were not shown because too many files have changed in this diff Show More