Тёмный
No video :(

[RNN] Applying and Understanding Recurrent Neural Networks in Python 

Spencer Pao
Подписаться 11 тыс.
Просмотров 9 тыс.
50% 1

Опубликовано:

 

29 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 22   
@ertaneligul5039
@ertaneligul5039 Год назад
Great video, having simplicity for such a complicated topic.
@joaonogaroli2165
@joaonogaroli2165 2 года назад
thank you from Brazil!
@filipszczypua4544
@filipszczypua4544 Год назад
Thank you!
@nothj
@nothj Год назад
**3 in the simpleRNN of keras does not mean the number of blocks ... number of blocks is determined by the input size... Thank you
@SpencerPaoHere
@SpencerPaoHere Год назад
Hmm. Are you referring to the Units parameter in SimpleRNN()? Units = 3? Located around 18:19? The units refer to the number of neurons in a layer?
@ifeomaobi753
@ifeomaobi753 Год назад
Please, how do we carry out the Mean Absolute Percentage Error on your univariate model to check for the accuracy of the model?
@ifeomaobi753
@ifeomaobi753 Год назад
Please how do you measure the accuracy of the SimpleRNN model using the univariate data?
@anishshah4850
@anishshah4850 Год назад
For muti-step prediction can we set the units in the last dense layer as the number of timesteps for eg. based on the frequency of your original time series data if the individual observations are 1 hour or 1 day apart you can set the units in the dense layer as 24 or 10 for 24 hours ahead prediction or 10 days ahead prediction?
@SpencerPaoHere
@SpencerPaoHere Год назад
The number of units in the last dense layer does not need to be directly tied to the number of time steps you want to predict. The dense layer typically represents the dimensionality of the output space, which is independent of the number of time steps. (but yes you can still do that) There are 2 approaches you can take here: Direct Multi-Step Prediction: predict all future time steps directly using a single output layer; So for 24 hours ahead prediction, the output layer would have 24 units, and for 10 days ahead prediction, it would have 10 units Auto-regressive Prediction: In this approach, you predict one time step at a time and feed the predicted value back into the model to predict the next time step. (recursive approach)
@digitalnomad2196
@digitalnomad2196 6 месяцев назад
if you do 10 then predict 1. Next time you do 10 doesn't that Y value from the first iteration now become a point in the new x set ? or am I missing something
@flips4life892
@flips4life892 6 месяцев назад
Not certain if I'm understanding your question correctly but each cell in the network gives two numbers, the output and the new hidden state. I believe in your example the output is 1, but that is not what is passed to the next cell. The hidden state (which is something other than 1) *is* passed to the next cell. So the output 1 is never used as an input to a new cell.
@digitalnomad2196
@digitalnomad2196 6 месяцев назад
@flips4life892 I am talking about the x y split. if you have a sequence of data. You take 10 points as x , 11th as y, say Y1. Then the next 10 as x. Doesn't that last point Y1 now become included in your next 10 X values. x = RNN_Input[0:10] Y = RNN_Input[10] print(x) print(f"y = {y}") x1 = RNN_Input[1:11] Y1 = RNN_Input[11] print(x1) print(f"y1 = {Y1}")
@SpencerPaoHere
@SpencerPaoHere 6 месяцев назад
@@digitalnomad2196 Hello! You can think of it as a moving window. So, when the 11th value comes in, you will use the [2:11] to get the 12th.
@SaschaRobitzki
@SaschaRobitzki 6 месяцев назад
In case you get an error in the "Cleaning the Data " cell, the code below worked for me. import yfinance as yfin gold = yfin.download('GC=F', '2015-12-20', interval='1d')
@HHHH-fr1wc
@HHHH-fr1wc Год назад
How can I unscale the data, and evaluate the performance of the model?
@SpencerPaoHere
@SpencerPaoHere Год назад
Depending on which forumula you used to scale your data on, you'd have to reverse the mathematical transformation. Here is some code that might help: from sklearn.preprocessing import StandardScaler scaler = StandardScaler() scaler.inverse_transform(....)
@js913
@js913 Год назад
you are doing great. but your model does not really perform. Simple moving average will give the results you are getting with RNN. So, what's the sole purpose ?
@SpencerPaoHere
@SpencerPaoHere Год назад
haha yeah. The use case was just an example. The end result would be to explain the intricacies behind the idea and usage of a RNN. RNN's, however, are somewhat of a base architecture and you will see parts of an RNN used in larger, more complex ML models that can perhaps perform better with alternative data.
@appkademiya
@appkademiya 2 года назад
do you have the link for the jupyter notebook?
@SpencerPaoHere
@SpencerPaoHere 2 года назад
Yes! Link here: github.com/SpencerPao/Data_Science/tree/main/RNN
@digitalnomad2196
@digitalnomad2196 6 месяцев назад
anyone has a requirements.txt file, these package dependencies are going crzy on my mac m1
@SpencerPaoHere
@SpencerPaoHere 6 месяцев назад
I unfortunatley am not on a Mac M1 -- but you can attempt to follow along on a Google Colab notebook - it should help with the standardization across operating systems.
Далее
Useful gadget for styling hair 💖🤩
00:20
Просмотров 1,8 млн
165 - An introduction to RNN and LSTM
19:32
Просмотров 76 тыс.
LSTM-Based Time Series with PyTorch (10.2)
13:54
Просмотров 5 тыс.
Recurrent Neural Networks (RNNs), Clearly Explained!!!
16:37
SAVING TIME: Scraping Financial Data
18:21
Просмотров 10 тыс.
Why Neural Networks can learn (almost) anything
10:30