Skip to content

Loss is 0 after training #1182

Answered by 37Lime
s2005lg asked this question in Q&A
Feb 21, 2025 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Greetings @s2005lg,

You are giving the model a relatively simple problem. This means that the loss value will be low.

Hence, try changing the rounding of your loss value in the print statement:
print(f"Epoch: {epoch} | Loss: {loss:.10f} | Test Loss: {test_loss:.10f}

Allowing for more decimals in the print statement should make the loss visible to you.

I hope this helps.

Best wishes.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@s2005lg
Comment options

Answer selected by s2005lg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants