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

  Рет қаралды 17,700

Yujian Tang

Yujian Tang

Күн бұрын

Mentioned Articles:
LSTM (in Keras): pythonalgos.co...
_ Variables: pythonalgos.co...
Optimizers (in Keras): pythonalgos.co...
Want to learn more Python and ML with a community?
Come join our Discord Community: / discord
Check out more content like this (in blog form) at www.PythonAlgo...

Пікірлер: 8
@AmritBasi
@AmritBasi Жыл бұрын
recently came across this channel and I'm enjoying this style of content, many thanks!
@ivanzelenin3986
@ivanzelenin3986 4 ай бұрын
Thank you very much for your work! Helped me a lot!
@AlexeyMatushevsky
@AlexeyMatushevsky Жыл бұрын
Why do we need to intialize the hidden_states and cell_states of the lstm every training step?
@yujiantang
@yujiantang Жыл бұрын
hidden state weights are not retained from each training step, also i don't believe i'm initializing them every step, just each epoch, you can also re-initialize each batch if you are doing truncated backprop through time
@michaelmoore7568
@michaelmoore7568 2 ай бұрын
obviously you have to read the docstrings to do the Class LSTM(nn.module): part? ....no?
@777TYT
@777TYT Жыл бұрын
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.
@yujiantang
@yujiantang Жыл бұрын
Here's the github: github.com/ytang07/nn_examples/blob/main/pytorch/rnn/lstm.ipynb
@emirhanozmen2289
@emirhanozmen2289 Ай бұрын
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.
I Built a Neural Network from Scratch
9:15
Green Code
Рет қаралды 293 М.
ML Was Hard Until I Learned These 5 Secrets!
13:11
Boris Meinardus
Рет қаралды 300 М.
Minecraft Creeper Family is back! #minecraft #funny #memes
00:26
Шок. Никокадо Авокадо похудел на 110 кг
00:44
Electric Flying Bird with Hanging Wire Automatic for Ceiling Parrot
00:15
Let's build GPT: from scratch, in code, spelled out.
1:56:20
Andrej Karpathy
Рет қаралды 4,7 МЛН
LSTM Top Mistake In Price Movement Predictions For Trading
9:48
CodeTrading
Рет қаралды 90 М.
Build a Neural Network with an ex Amazon SDE - Part 1
33:09
Yujian Tang
Рет қаралды 409
Building a Neural Network with PyTorch in 15 Minutes | Coding Challenge
20:34
Multivariate Time Series Forecasting Using LSTM, GRU & 1d CNNs
1:08:14
The Most Important Algorithm in Machine Learning
40:08
Artem Kirsanov
Рет қаралды 425 М.
Learn RAG From Scratch - Python AI Tutorial from a LangChain Engineer
2:33:11
What is LSTM (Long Short Term Memory)?
8:19
IBM Technology
Рет қаралды 200 М.
Minecraft Creeper Family is back! #minecraft #funny #memes
00:26