You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that max_loss in function train_epochs() at esrnn/trainer.py is not being updated appropriately
def train_epochs(self):
max_loss = 1e8
start_time = time.time()
for e in range(self.max_epochs):
self.scheduler.step()
epoch_loss = self.train()
if epoch_loss < max_loss:
self.save()
epoch_val_loss = self.val()
if e == 0:
file_path = os.path.join(self.csv_save_path, 'validation_losses.csv')
with open(file_path, 'w') as f:
f.write('epoch,training_loss,validation_loss\n')
with open(file_path, 'a') as f:
f.write(','.join([str(e), str(epoch_loss), str(epoch_val_loss)]) + '\n')
print('Total Training Mins: %5.2f' % ((time.time()-start_time)/60))
Thanks!
The text was updated successfully, but these errors were encountered:
junhyk
changed the title
max_loss not updating
max_loss is not being updated
Aug 28, 2019
Hi,
It seems that
max_loss
in functiontrain_epochs()
atesrnn/trainer.py
is not being updated appropriatelyThanks!
The text was updated successfully, but these errors were encountered: