"ModelCheckpoint" doesn't save the result of the model

I am trying to build a speech recognition model following this tutorial

at the end of the training model, there is this part which should save the result of the training

es = EarlyStopping(monitor='val_loss', mode='min', verbose=1, patience=10, min_delta=0.0001)
mc = ModelCheckpoint('best_model.hdf5', monitor='val_acc', verbose=1, save_best_only=True, mode='max')

so the result should be saved in this file “best_model.hdf5” but I didn’t found any file created

to test it, I tried to run testing model, the model should be loaded using


I got an error message
OSError: Unable to open file (unable to open file: name = 'best_model.hdf5', errno = 2, error message = 'No such file or directory', flags = 0, o_flags = 0)

someone can help me ?

© Copyright 2013-2019 Analytics Vidhya