When using something like:
callbacks = [
EarlyStopping(patience=15, monitor=\'val_loss\', min_delta=0, mode=\'min\'),
ModelCheckpoint(\'best-weights.
I would say model
uses the latest weights, but I could not find any evidence in the docs.
Fortunately you can check the behavior of model
by yourself.
First you run:
y_pred = model.predict(x_test)
After that, you can load best-weights.h5
and run the prediction on the same test set again.
If model
contains the latest weights, you should get an improved result when loading best-weights.h5
. If the results are the same, you can be sure that model automatically uses the best achieved results.