I have a problem when training a neural net with Keras in Jupyter Notebook. I created a sequential model with several hidden layers. After training the model and saving the
keras.backend.clear_session() should clear the previous model. From https://keras.io/backend/:
keras.backend.clear_session()
Destroys the current TF graph and creates a new one. Useful to avoid clutter from old models / layers.