fix exp name

This commit is contained in:
2025-10-29 22:19:58 +08:00
parent 9b730b3a88
commit c6872199d6

View File

@@ -82,7 +82,7 @@ class Evaluator:
metric_col = [e for e in df.columns if "feedback" in e]
df_curr_m = df[metric_col].mean().to_frame().T
df_curr_m.index = [f'{head_path}-{n_exp}']
df_curr_m.index = [f'{osp.basename(head_path)}-{n_exp}']
metric_f = osp.join(self.config.log_dir, "0_exp_metrics.csv") # start with 0 for first file in folder
if osp.exists(metric_f):