add score name to best results excel file name

This commit is contained in:
2024-09-28 18:58:49 +02:00
parent 148a3b831a
commit c58bd9d60d
2 changed files with 3 additions and 3 deletions

View File

@@ -32,7 +32,7 @@ namespace platform {
} }
BestResultsExcel::BestResultsExcel(const std::string& score, const std::vector<std::string>& datasets) : score(score), datasets(datasets) BestResultsExcel::BestResultsExcel(const std::string& score, const std::vector<std::string>& datasets) : score(score), datasets(datasets)
{ {
file_name = Paths::bestResultsExcel(); file_name = Paths::bestResultsExcel(score);
workbook = workbook_new(getFileName().c_str()); workbook = workbook_new(getFileName().c_str());
setProperties("Best Results"); setProperties("Best Results");
int maxDatasetName = (*max_element(datasets.begin(), datasets.end(), [](const std::string& a, const std::string& b) { return a.size() < b.size(); })).size(); int maxDatasetName = (*max_element(datasets.begin(), datasets.end(), [](const std::string& a, const std::string& b) { return a.size() < b.size(); })).size();

View File

@@ -44,9 +44,9 @@ namespace platform {
{ {
return "best_results_" + score + "_" + model + ".json"; return "best_results_" + score + "_" + model + ".json";
} }
static std::string bestResultsExcel() static std::string bestResultsExcel(const std::string& score)
{ {
return "BestResults.excel"; return "BestResults_" + score + ".xlsx";
} }
static std::string excelResults() { return "some_results.xlsx"; } static std::string excelResults() { return "some_results.xlsx"; }
static std::string grid_input(const std::string& model) static std::string grid_input(const std::string& model)