Skip to content
Snippets Groups Projects
Commit 0d609c80 authored by Pierre LOTTE's avatar Pierre LOTTE
Browse files

Save time only during training

parent c3d5b007
Branches
Tags
No related merge requests found
......@@ -65,5 +65,6 @@ class BaseTrainer():
)
duration = time() - start_time
with open(f"{path}/time.csv", "a", encoding="utf-8") as f:
f.write(f"{self.algorithm},{file_name},{duration}\n")
if task == "execute":
with open(f"{path}/time.csv", "a", encoding="utf-8") as f:
f.write(f"{self.algorithm},{file_name},{duration}\n")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment