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.


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

Answered By – Saikat Kumar Dey

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published