Yesterday I trained the model in Keras all night, but when I tried to see the results, my computer was not working. When I turned it ON, then I saw 'model.h5' file built already, but I couldn't see the results of accuracy of my training and testing. I saved the model with 'model.save', but how can I now see the accuracy of the model only from that saved model?

  • $\begingroup$ What type of problem are you dealing with here ? Classification or Regression ? You can not read the accuracy of the model you will have to find it out. Do you have a test set or validation set ? $\endgroup$
    – Kaustubh
    Commented Jul 4, 2018 at 7:53

1 Answer 1


According to the official Keras website, you have to use:



model = load_model('my_model.h5')

This will load your saved H5 model to 'model' and then you can try:


To return the loss value & metrics values for the model in test mode.

  • $\begingroup$ what is x and y here in model.evaluate(x,y) $\endgroup$ Commented Jan 30, 2023 at 18:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.