Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

clone keras model

model_copy= keras.models.clone_model(model1)
model_copy.build((None, 10)) # replace 10 with number of variables in input layer
model_copy.compile(optimizer='rmsprop', loss='categorical_crossentropy')
model_copy.set_weights(model.get_weights())
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #clone #keras #model
ADD COMMENT
Topic
Name
8+6 =