📜  保存具有最佳验证损失的模型 keras - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:47.601000             🧑  作者: Mango

代码示例1
model = getModel()
model.summary()
earlyStopping = EarlyStopping(monitor='val_loss', patience=1000, verbose=0, mode='min')
model.fit(Xtr_more, Ytr_more, batch_size=32, epochs=50, verbose=0, callbacks=[earlyStopping], validation_split=0.25)