Skip to content
Snippets Groups Projects
Commit d3c5e2b4 authored by Fize Jacques's avatar Fize Jacques
Browse files

Debug

parent 67aaa571
No related branches found
No related tags found
No related merge requests found
......@@ -180,11 +180,11 @@ class EpochTimer(Callback):
def __init__(self,log_filename):
self.epoch = 0
self.timer = time.time()
if os.path.exists(log_filename):
self.output = open(log_filename,'a')
self.epoch = pd.read_csv(log_filename).Epoch.max()
else:
self.output = open(log_filename,'w')
# if os.path.exists(log_filename):
# self.output = open(log_filename,'a')
# self.epoch = pd.read_csv(log_filename).Epoch.max()
# else:
self.output = open(log_filename,'w')
self.output.write("{0},{1},{2},{3},{4},{5}\n".format("Epoch","Execution Time","Loss","Val_Loss","Accuracy","Accuracy_val"))
self.output.flush()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment