【Keras】MNIST99%准确率。训练自动停止报错:TypeError: ‘>‘ not supported between instances of ‘Nonetype‘ and ‘float‘
问题描述【Tensorflow==1.15.0】使用tf.keras自定义回调函数,设置根据准确率自动停止训练时,报错TypeError:'>'notsupportedbetweeninstancesof'NoneType'and'float'importtensorflowastfclassmyCallback(tf.keras.callbacks.Callback):defon_epoch_e