Build and Train a PyTorch LSTM in Under 100 Lines of Code

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

Want to learn more Python and ML with a community?

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

recently came across this channel and I'm enjoying this style of content, many thanks!

AmritBasi
Автор

Thank you very much for your work! Helped me a lot!

ivanzelenin
Автор

Why do we need to intialize the hidden_states and cell_states of the lstm every training step?

AlexeyMatushevsky
Автор

RuntimeError: Trying to backward through the graph a second time (or directly access saved tensors after they have already been freed). Saved intermediate values of the graph are freed when you call .backward() or autograd.grad(). Specify retain_graph=True if you need to backward through the graph a second time or if you need to access saved tensors after calling backward. I took this error. (I am not using the same dataset). Thank you.

emirhanozmen
Автор

obviously you have to read the docstrings to do the Class LSTM(nn.module): part? ....no?

michaelmoore
Автор

there is not enough link to githov so as not to copy the code manually from the screen to your computer. think about it in the future. the video also starts with some kind of vague start, as if I had to watch some previous videos before it, although it does not say that this is part 2 or something like that.

TYT