Skip to content

Instantly share code, notes, and snippets.

@angadsinghsandhu
Created December 1, 2020 05:22
Show Gist options
  • Save angadsinghsandhu/b54840b5b30d8b7ab43642a90dfc3fd6 to your computer and use it in GitHub Desktop.
Save angadsinghsandhu/b54840b5b30d8b7ab43642a90dfc3fd6 to your computer and use it in GitHub Desktop.
Calculating Loss
# Calculating Loss
def NN_loss(self, y_hat, y):
loss = (y_hat - y)**2
loss = loss[0]
self.loss += loss
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment