Skip to content

Commit

Permalink
Log the epoch results
Browse files Browse the repository at this point in the history
  • Loading branch information
jshuadvd committed Jul 6, 2024
1 parent ee2e5f3 commit 7b00be2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions train.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,8 @@ def train(
}
)

# Print epoch results
print(
# Log epoch results
logger.info(
f"Epoch {epoch+1}, Train Loss: {avg_train_loss:.4f}, Train Perplexity: {train_perplexity:.4f}, "
f"Val Loss: {avg_val_loss:.4f}, Val Perplexity: {val_perplexity:.4f}"
)
Expand Down

0 comments on commit 7b00be2

Please sign in to comment.