Loading the Training History in a H5 file

Hello as of now I have trouble in extracting the training history of an H5 file. Can you give me a sample code on how to extract the H5 file’s training history (accuracy and loss values) so that I know what to do next especially if I want to improve the model saved in an H5 file?

As of now what I know is getting the loss and accuracy history after the model training and its my first time to extract training history in an H5 file.

Thank you!

I realize that this is somehow impossible, so just be cautious during training when you want to save the training history of your model you need to include in your callbacks the CSVLogger.

Here is the documentation tf.keras.callbacks.CSVLogger | TensorFlow v2.12.0