feat: Enhance eval script with file cleanup and detailed submission checks (#529)

This commit is contained in:
you-n-g
2025-01-22 21:51:34 +08:00
committed by GitHub
parent 5f6c2b8875
commit 5d04badc6a
3 changed files with 31 additions and 5 deletions
@@ -58,6 +58,9 @@ class WorkflowGeneralCaseSpecEvaluator(CoSTEEREvaluator):
f"{DS_RD_SETTING.local_data_path}/sample/{self.scen.competition}": "/kaggle/input"
}
de = DockerEnv(conf=ds_docker_conf)
# Clean the scores.csv & submission.csv.
stdout = implementation.execute(env=de, entry=f"rm submission.csv scores.csv")
fname = "main.py"
stdout = implementation.execute(env=de, entry=f"python {fname}")