When I start training a model, there is no model saved previously. I can use model.compile()
safely. I have now saved the model in a h5
file for further training using checkpoint
.
Say, I want to train the model further. I am confused at this point: can I use model.compile()
here? And should it be placed before or after the model = load_model()
statement? If model.compile()
reinitializes all the weights and biases, I should place it before model = load_model()
statement.
After discovering some discussions, it seems to me that model.compile()
is only needed when I have no model saved previously. Once I have saved the model, there is no need to use model.compile()
. Is it true or false? And when I want to predict using the trained model, should I use model.compile()
before predicting?