clone keras model

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

showing results for - "clone keras model"
Sofia
03 Jun 2018
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
queries leading to this page
copy model kerasclone keras model