Reduce verbosity during training?

How can I stop the training process from printing every epoch’s loss and accuracy? I’m doing some grid searches in a loop and its printing way too much to monitor where I am in the loop.

I think this is what you are looking for: