copy model keras

Solutions on MaxInterview for copy model keras by the best coders in the world

showing results for - "copy model keras"
Alessandra
13 Nov 2016
1model_copy= keras.models.clone_model(model1)
2model_copy.build((None, 10)) # replace 10 with number of variables in input layer
3model_copy.compile(optimizer='rmsprop', loss='categorical_crossentropy')
4model_copy.set_weights(model.get_weights())
5