Skip to content
Advertisement

How to disable printing reports after each epoch in Keras?

After each epoch I have printout like below:

Train on 102 samples, validate on 26 samples
Epoch 1/1
Epoch 00000: val_acc did not improve
102/102 [==============================] - 3s - loss: 0.4934 - acc: 0.8997 - val_loss: 0.4984 - val_acc: 0.9231

I am not using built-in epochs, so I would like to disable these printouts and print something myself.

How to do that?

I am using tensorflow backend if it matters.

Advertisement

Answer

Set verbose=0 to the fit method of your model.

Advertisement