Keras: How to stop training with the lowest observed metric value?
问题 With Keras, I would like to stop the training at the epoch which returns the best (in most cases: lowest) observed metric (such as val_loss for example). I would not like to use the state of the network after the patience "ran out". How can I do that? 回答1: Well.... you can't really "stop" at the best accuracy, because you need to know the future values to decide if there will be better values! But you can use another callback, the ModelCheckpoint, to save your model after each epoch. You can