Skip to content

Instantly share code, notes, and snippets.

@MohanaRC
Created August 10, 2023 17:07
Show Gist options
  • Save MohanaRC/c0181aa4228817304155e761a3a08551 to your computer and use it in GitHub Desktop.
Save MohanaRC/c0181aa4228817304155e761a3a08551 to your computer and use it in GitHub Desktop.
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