pytorch-nlp-tutorial-ny2018
pytorch-nlp-tutorial-ny2018 copied to clipboard
Progress bar in Day 1: 4_Chinese_document_classification
Progress bar for the training counts nicely for the first epoch, but then spills over 100 into the next epoch.
It doesn't look like there's a nice way of resetting the bar - you could create a new one each epoch, but that would be a lot of bars.
I recommend the following code in defining it. Include the epochs in setting it up, so that the user can see total progress.
bar = tqdm_notebook(total=len(dataloader)*num_epochs)
Brian 👇
On Fri, Apr 27, 2018 at 12:51 PM ArtOfStew [email protected] wrote:
Progress bar for the training counts nicely for the first epoch, but then spills over 100 into the next epoch.
It doesn't look like there's a nice way of resetting the bar - you could create a new one each epoch, but that would be a lot of bars.
I recommend the following code in defining it. Include the epochs in setting it up, so that the user can see total progress.
bar = tqdm_notebook(total=len(dataloader)*num_epochs)
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/joosthub/pytorch-nlp-tutorial-ny2018/issues/2, or mute the thread https://github.com/notifications/unsubscribe-auth/AJFXDp0RR2jZuniwlKPskuySe9rkOS8fks5ts3bHgaJpZM4Tq7Sb .