We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
class myCallback(tf.keras.callbacks.Callback): def on_epoch_end(self, epoch, logs={}): if(logs.get('accuracy')>0.6): print("\nReached 60% accuracy so cancelling training!") self.model.stop_training = True
This does not work. logs.get('accuracy') always returns None. It should be
logs.get('accuracy')
None
class myCallback(tf.keras.callbacks.Callback): def on_epoch_end(self, epoch, logs={}): if(logs.get('acc')>0.6): print("\nReached 60% accuracy so cancelling training!") self.model.stop_training = True
The text was updated successfully, but these errors were encountered:
Yes, I had a sames result. logs.get('accuracy') made error but logs.get('acc') is ok.
Sorry, something went wrong.
This is because of Tensorflow 1. If you upgrade it to Tensorflow 2, 'accuracy' should work.
No branches or pull requests
This does not work.
logs.get('accuracy')
always returnsNone
.It should be
The text was updated successfully, but these errors were encountered: