Skip to content

Commit

Permalink
multiply loss by 100 when exporting log to improve readability
Browse files Browse the repository at this point in the history
  • Loading branch information
kntkb committed Mar 14, 2024
1 parent 790df53 commit d6fea04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion espfit/app/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ def report_loss(self, epoch, loss_dict):

log_file_path = os.path.join(self.output_directory_path, 'reporter.log')
df_new = pd.DataFrame.from_dict(loss_dict, orient='index').T
df_new.mul(100) # Multiple each loss component by 100
df_new = df_new.mul(100) # Multiple each loss component by 100
df_new.insert(0, 'epoch', epoch)

if os.path.exists(log_file_path):
Expand Down

0 comments on commit d6fea04

Please sign in to comment.