while i < Random_Deep[1]:
try:
print("RNN ", i, "\n")
model.append(Sequential())
model[i], model_tmp = BuildModel.Image_model_RNN(number_of_classes, shape)
filepath = "weights\weights_RNN_" + str(i) + ".hdf5"
checkpoint = ModelCheckpoint(filepath, monitor="val_acc", verbose=1, save_best_only=True,
After Change
i = i + 1
del model_tmp
del model_DNN
gc.collect()
except:
print("Error in model ", i, " try to re-generate an other model")
i =0
while i < Random_Deep[1]: