save config

This commit is contained in:
2025-10-30 11:42:41 +08:00
parent 59696f491c
commit d054aaccbc

View File

@@ -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")