ThilinaRajapakse / pytorch-transformers-classification

Based on the Pytorch-Transformers library by HuggingFace. To be used as a starting point for employing Transformer models in text classification tasks. Contains code to easily train BERT, XLNet, RoBERTa, and XLM models for text classification.
Apache License 2.0
306 stars 97 forks source link

SummaryWriter Import Missing from Gist #19

Open alfredtangsw opened 5 years ago

alfredtangsw commented 5 years ago

Hello! The following import line is missing from the Gist you provided in your article. Discovered it was missing when I got an error running the code. I found it in your ipynb instead.

from tensorboardX import SummaryWriter

Could you add it to your Gist? It would be helpful to anyone who is looking through your article and doing good old copy-and-paste. Thanks!

ThilinaRajapakse commented 5 years ago

The recommended method is to get the code from the Github repo since the code on the article is for demonstration only. I do understand that sometimes you just want to use copy and paste, but updating the code on the article is quite tedious (updating the Gist doesn't automatically update the article as far as I know). I'll see what I can do.

alfredtangsw commented 5 years ago

Agreed. That's why I am using your repo now. Haha

I also have a separate issue with the code that I'm trying to resolve on my own. If I can't, I will open an issue to ask you about it.

ThilinaRajapakse commented 5 years ago

Hope it goes well!