Extract hyperparameters from a trained Keras model
If you want to get all hyperparameters of optimizer, please do:
model.optimizer.get_config()
If you want to get all hyperparameters of layers, please do:
model.get_config()
For re-training a model it is useful to know the hyperparameters of the elder model. It could give us a starting point. I have a .h5 keras model where I want to extract some hyperparameters like Batch_size and number of epochs. I have tried model.summary() but doesn't give the necessary information and also model.get_config().
Is there any way to extract these hyperparameters of the Keras model?