How to get the best model when using EarlyStopping callback in Keras?

后端 未结 2 1596
栀梦
栀梦 2020-12-10 21:12

I am training a neural network with Keras using EarlyStopping based on val_acc and patience=0. EarlyStopping stops the tr

2条回答
  •  情深已故
    2020-12-10 21:51

    If you would like to save the highest accuracy then you should set the checkpoint monitor='val_acc' it will automatically save on highest. Lowest loss might not necessarily correspond to highest accuracy. You can also set verbose=1 to see which model is being saved and why.

提交回复
热议问题