# Running Neural Network experiments in loop

I need to run neural network training with different hyper parameters settings like this:

for seed in range(2):
NN_inst = FeedForwardNN(seed)
NN_inst.classification_model()
NN_inst.run_model()


It looks like I need to clear tensorflow memory, but

K.clear_session()
tf.reset_default_graph()


do not help. I am using Keras, error is on fit(). What should I do?

sess = tf.InteractiveSession()