Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

save model with best validation loss keras

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)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #save #model #validation #loss #keras
ADD COMMENT
Topic
Name
6+9 =