Created
March 19, 2018 03:24
-
-
Save anonymous/ce75a862eaa0a010e5810bcad5c90db2 to your computer and use it in GitHub Desktop.
by amoshyc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from tqdm import tqdm | |
| from time import sleep | |
| n_steps = 100 | |
| msg = {'loss': 1, 'acc': 0.0} | |
| with tqdm(total=n_steps, postfix=msg, ascii=True) as pbar: | |
| for i in range(n_steps): | |
| sleep(1) | |
| msg['loss'] -= 0.01 | |
| msg['acc'] += 0.01 | |
| pbar.set_postfix(msg) | |
| pbar.update() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment