pytorch-nlp-tutorial-ny2018 icon indicating copy to clipboard operation
pytorch-nlp-tutorial-ny2018 copied to clipboard

Progress bar in Day 1: 4_Chinese_document_classification

Open ArtOfStew opened this issue 6 years ago • 1 comments

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)

ArtOfStew avatar Apr 27 '18 19:04 ArtOfStew

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 .

joostware avatar Apr 27 '18 19:04 joostware