Created
August 10, 2023 17:07
-
-
Save MohanaRC/c0181aa4228817304155e761a3a08551 to your computer and use it in GitHub Desktop.
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
def perform_validation(): | |
""" | |
Function for validation | |
""" | |
losses = [] | |
for x_val, y_val in test: | |
val_logits = model(x_val) | |
val_loss = loss_object(y_true=y_val, y_pred=val_logits) | |
losses.append(val_loss) | |
val_acc_metric(y_val, val_logits) | |
return losses |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment