Created
December 1, 2020 05:22
-
-
Save angadsinghsandhu/b54840b5b30d8b7ab43642a90dfc3fd6 to your computer and use it in GitHub Desktop.
Calculating Loss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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