From d054aaccbc0b77494ba77bd88e02d56391bf53c2 Mon Sep 17 00:00:00 2001 From: goulustis Date: Thu, 30 Oct 2025 11:42:41 +0800 Subject: [PATCH] save config --- lang_agent/eval/evaluator.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lang_agent/eval/evaluator.py b/lang_agent/eval/evaluator.py index 72c39be..dc8effb 100644 --- a/lang_agent/eval/evaluator.py +++ b/lang_agent/eval/evaluator.py @@ -73,7 +73,7 @@ class Evaluator: head_path = osp.join(self.config.log_dir, f"{self.dataset.name}-{self.config.experiment_prefix}") n_exp = len(glob.glob(f"{head_path}*")) - exp_save_f = osp.join(f"{head_path}-{n_exp}.csv") + exp_save_f = f"{head_path}-{n_exp}.csv" df = self.result.to_pandas() logger.info(f"saving experiment results to: {exp_save_f}") @@ -93,4 +93,6 @@ class Evaluator: df_m.to_csv(metric_f) + self.config.save_config(f"{head_path}-{n_exp}.yml") +