You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In mnist.py there is this for loop (please pardon my possibly outdated verbiage as I started programming in Pascal and FORTRAN) given below between the lines of ====.
But epochs is not defined error is being thrown.
To what value should epochs be set?
===================================================================================
for epoch in range(epochs):
train_loss.reset_states()
val_loss.reset_states()
val_accuracy.reset_states()
# Existing training and validation loop here ...
# Append metrics after each epoch
epoch_train_loss.append(train_loss.result().numpy())
epoch_val_loss.append(val_loss.result().numpy())
epoch_val_accuracy.append(val_accuracy.result().numpy())
print(f'Epoch {epoch + 1}, Train Loss: {train_loss.result():.4f}, Validation Loss: {val_loss.result():.4f}, Validation Accuracy: {val_accuracy.result():.4f}')
In mnist.py there is this for loop (please pardon my possibly outdated verbiage as I started programming in Pascal and FORTRAN) given below between the lines of ====.
But epochs is not defined error is being thrown.
To what value should epochs be set?
===================================================================================
for epoch in range(epochs):
train_loss.reset_states()
val_loss.reset_states()
val_accuracy.reset_states()
===================================================================================
The text was updated successfully, but these errors were encountered: