Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 988
Dims Avatar asked Jul 05 '17 16:07

Dims


1 Answers

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

like image 162
Saikat Kumar Dey Avatar answered Sep 20 '22 17:09

Saikat Kumar Dey