Suggestion on page 392 #117
baifanhorst
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
On page 392, the loss function is defined as:
def loss_fn(input, target):
return (input-target).pow(2).mean()
Since 'input' is the name of a built-in function in python, perhaps another name should be used, for example, 'prediction'. The codes then become
def loss_fn(prediction, target):
return (prediction-target).pow(2).mean()
Beta Was this translation helpful? Give feedback.
All reactions