Answers for "re initialize weights keras"

0

re initialize weights keras

Save the initial weights right after compiling the model but before training it:

model.save_weights('model.h5')
and then after training, "reset" the model by reloading the initial weights:

model.load_weights('model.h5')
This gives you an apples to apples model to compare different data sets and should be quicker than recompiling the entire model.
Posted by: Guest on March-25-2022

Code answers related to "TypeScript"

Browse Popular Code Answers by Language