L15.7 An RNN Sentiment Classifier in PyTorch

preview_player
Показать описание


-------

This video is part of my Introduction of Deep Learning course.

-------

Рекомендации по теме
Комментарии
Автор

Great presentation. Have spent a couple weeks now, every night, doing your videos and hands on notebooks! And I feel I made a lot more progress than with other, less coding-oriented classes.

Suggestion: define TEXT_COLUMN_NAME, LABEL_COLUMN_NAME as local variables, in all caps, and reference them as variable names everywhere.

bitdribble
Автор

Hello Prof. Raschka. What an amazing hands on tutorial on RNN!
I have seen one issue. At 37:26, "packed", the return value of "pack_padded_sequence", is not passed to the next layer "self.rnn".
But still this version is much better than the first one. As far as I've experimented, the reason is that when you enable sorting within batch, the sequence lengths in batches are very similar. This way RNN learns much better instead of learning dummy paddings.

kafaayari
Автор

nn.lstm handles itself, previous output is input to next in the network?

abubakarali
Автор

for text preprocessing you could have used a library like neattext.

Rahulsircar
Автор

Hello Sebastian. Love your books, just keep it up that way. As I said many times your book along with Aurelion Geron one are the best books on subject. I have read second and thrid edition and I always keep it in a desk, although I ve read it page to page... P. S. Convolution types pictures, same and valid when you explain them in a book, are replaced its unsignificant detail but cause it is repeated in second and third edition I thought just to let you know. Best regards

milanradovanovic
Автор

This is really awesome stuff 🙂 Do you also have videos on transformer/BERT architecture? and the codes related to that?

madhuful
Автор

Thanks so much for this, I have been looking for examples of RNNs in pytorch, this is very clear. Has anybody figured out how to use the new torchtext API? They removed legacy and the provided migration guide is also broken, it's been a challenge to figure out how to get this to run with the current API.

donatocapitella
Автор

Great video! Does the <unk> in the vocabulary indicate words that are not in our vocabulary? So in case our LSTM encounters an unknown word, it will be regarded as <unk> ?

randb
Автор

If I am not wrong is this a single unit LSTM unit used in the model?

akashghosh
Автор

AttributeError: module 'torchtext' has no attribute 'legacy'

debabratasikder