Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

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.
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #initialize #weights #keras
ADD COMMENT
Topic
Name
3+9 =