Quantcast
Channel: Data Science, Analytics and Big Data discussions - Latest topics
Viewing all articles
Browse latest Browse all 4448

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

$
0
0

Hello
I am trying to build a speech recognition model following this tutorial
https://www.analyticsvidhya.com/blog/2019/07/learn-build-first-speech-to-text-model-python/

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

model=load_model(‘best_model.hdf5’)

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 ?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4448

Trending Articles