The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

madara (6) [Avatar] Offline
#1
Hi

first thanks for this great book!

but why using ""model_from_json"" method to save and load keras trained model?
in this way You need to save also weights, ...and reload them

the best way to do that is simply use 'save' and 'load_model' methods:

The save function saves:

'The architecture of the model, allowing to re-create the model.'
'The weights of the model.'
'The training configuration (loss, optimizer).'

hobs (58) [Avatar] Offline
#2
Interesting. I wasn't aware that `.save()` and `model_from_json()` did not behave the same way. We'll look into it.