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
No related branches found
No related tags found
No related merge requests found
...@@ -65,5 +65,6 @@ class BaseTrainer(): ...@@ -65,5 +65,6 @@ class BaseTrainer():
) )
duration = time() - start_time duration = time() - start_time
with open(f"{path}/time.csv", "a", encoding="utf-8") as f: if task == "execute":
f.write(f"{self.algorithm},{file_name},{duration}\n") 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