Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sys
- def show_progress(e, i, t, l, v):
- '''
- Prints the training progress recursively.
- Args:
- e (int): the current epoch
- i (int): the current batch
- t (int): the total batches
- l (float): the current training loss
- v (float): the current validation loss
- '''
- sys.stdout.write('\r#%4d: [%5d / %5d] loss: %.4f err: %.3f'
- % (e, i, t, l, v))
- sys.stdout.flush()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement