for X, y in data.next_batch():
    model.fit(X, y, nb_epoch=1, batch_size=data.batch_size, verbose=0)
sys.stdout.write('[%-60s] %d%%' % ('=' * (60 * (e + 1) / 10), 100 * (e + 1) /
    10))
sys.stdout.flush()
sys.stdout.write(', epoch %d' % (e + 1))
sys.stdout.flush()
Show progress bar for each epoch during batchwise training in Keras