Тёмный

Time Series Data Preparation for Deep Learning (LSTM, RNN) models 

AIEngineering
Подписаться 76 тыс.
Просмотров 67 тыс.
50% 1

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

 

11 сен 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 70   
@story_teller_1987
@story_teller_1987 3 года назад
Most of the time series videos I have seen are done by so called experts , but themselves don’t know what they are teaching. Here at AI Engineering Srinivasan is doing a really great job. He knows to explain it to us by covering each and every corner of the topic. “If you can't explain it simply, you don't understand it well enough.” Albert Einstein
@AIEngineeringLife
@AIEngineeringLife 3 года назад
Thanks for such a wonderful note 🙏
@himanshuverma8648
@himanshuverma8648 2 года назад
Most of the people out there use a function to prepare the data for LSTM but here with the help of this generator it becomes really easy. Thank You.
@Induraj11
@Induraj11 3 года назад
If I need to learn some concept, I know "AI engineering" is the first place I search for. Thanks for the time and efforts you and your team put sir.
@AIEngineeringLife
@AIEngineeringLife 3 года назад
Thanks for this note Induraj :)
@tejask5417
@tejask5417 3 года назад
Unlike everyother idiot out there who predict single input LSTM's, you did a fantastic job in explaining how to create a samples for multiple inputs and multiple outputs. Just subscribed to your video, thank you!
@arashchitgar7445
@arashchitgar7445 2 года назад
Finally.... someone explained this stuff clearly. Thank you sooo much!!! 🙏🙏
@waqitshatasheel5875
@waqitshatasheel5875 Год назад
This is very detailed explanation of windows, shifting and labeling in time series. I have came across Tensoflow Documentation, but I didn't understand at all. Thanks for sharing.
@shwetabhat9981
@shwetabhat9981 Год назад
Great content sir . Hope you are doing well, kindly continue sharing your knowledge on ML DL as it greatly helps 🙂
@leonandorfi5191
@leonandorfi5191 3 года назад
Thank you for the video, by far the best explanation I could find. Just one question, why do we add the column we are trying to predict in the data parameter of TimeseriesGenerator if we already have it in the target? I guess I'm having trouble understanding what those parameters are, but isn't data the set of features we want to use to predict the target?
@AIEngineeringLife
@AIEngineeringLife 3 года назад
Leon.. In time series future value is typically a functions of past lag of predictor. This is account for trend, seasonality and others. Reason in time series analysis we use lags of target. In traditional classification we typically do not use target as the output is just function of input feature alone
@thebiggerpicture__
@thebiggerpicture__ 2 года назад
@@AIEngineeringLife Sorry, I have the same question but didn't get the answer. Could you please develop? Thanks! great video.
@alliwant8383
@alliwant8383 2 года назад
Great video my friend!
@treasuremshololo7938
@treasuremshololo7938 2 года назад
Welldone Sir.
@renemiche735
@renemiche735 3 года назад
Great thanks, perfect explanation.
@slash7954
@slash7954 3 года назад
Your video is very good. When is the next video we can watch? I want you to use an autoencoder. Thanks a lot!
@AIEngineeringLife
@AIEngineeringLife 3 года назад
Thank you.. LSTM should be coming in less than a week and later followed by autoencoders
@edwardchamberlain4910
@edwardchamberlain4910 2 года назад
Excellent.
@isururajapaksha6700
@isururajapaksha6700 Год назад
great explanation bro
@carrocesta
@carrocesta Год назад
very well explained, thank you sir!
@moustafa_shomer
@moustafa_shomer 2 года назад
Another great video, really great job man, hope your videos reach more people
@AMVSAGOs
@AMVSAGOs Год назад
Hi... This is really a great content, at 20.28 min you mentioned features. I think they are samples. because we have None values in the last 2 rows of target , we have to skip their corresponding input samples. That is why we are considering all the samples except last 2. could you please check and confirm whether I am right or not ?.
@darshanayenkar5833
@darshanayenkar5833 2 года назад
one more time great thanks
@vijaychakole5929
@vijaychakole5929 3 года назад
nice explanation ...thank you..it will be more beneficial for beginners like us if you can share a notebook for learning purposes for us...thanks again...
@AIEngineeringLife
@AIEngineeringLife 3 года назад
It is all here Vijay - github.com/srivatsan88/End-to-End-Time-Series
@vijaychakole5929
@vijaychakole5929 3 года назад
@@AIEngineeringLife thank you so much, sir...
@MaximGehlmann
@MaximGehlmann Год назад
Why do you give the appliance power also in the feature? Doesn't the LSTM then learn that the label is purely a copy of the appliance column?
@ajithshenoy5566
@ajithshenoy5566 3 года назад
you're amazing . Thanks a lot
@AIEngineeringLife
@AIEngineeringLife 3 года назад
👍
@ashwin_raikar
@ashwin_raikar 2 года назад
Here is the dataset link: archive.ics.uci.edu/ml/machine-learning-databases/00374/
@aninsignificantman001
@aninsignificantman001 2 года назад
Thanks for the video . It was very helpful . Still I have a doubt and a request . doubt :: When using lstm model at the time of prediction, to generate output of the second and subsequent timesteps , we will also need the other features at respective timesteps . So are you missing something in the video or is it my understanding that is wrong . Request :: when working with data of cryptocurrency price prediction , the range of values for price is very high . Using an ordinary scaler does not work and I suspect using log transform will induce a lot of error . Is there a way that can help . Can you make a video on it as it is on a related topic with a different set of problem . Thanks in Advance .
@matts.4937
@matts.4937 7 дней назад
how can we get the code for this? its very helpful
@anirbanmukherjee7547
@anirbanmukherjee7547 3 года назад
Normally, a model takes six consecutive time steps as input and predicts on 7th time step...now, I want the model to take six consecutive timesteps from t=0 to t=5 as input and t=12 as label, instead of t=7...what will be the arguments of TimeSeriesGenerator( ) in this case? Is it possible?
@AIEngineeringLife
@AIEngineeringLife 3 года назад
Anirban.. To my knowledge not possible out of the box. You can write a custom function and achieve it or I would say create a multi step output as shown in my example above that will predict all t-6 to t-12 and then pick t-12 as output
@anirbanmukherjee7547
@anirbanmukherjee7547 3 года назад
@@AIEngineeringLife Thank you sir...
@anangsuwasto7660
@anangsuwasto7660 3 года назад
Thanks a lot for the video. I have a question. if we have daily data and want to predict the next 30 days so we shift the multi_target by -30?
@AIEngineeringLife
@AIEngineeringLife 3 года назад
Anand.. Nope.. shift is how long of data you want to use to predict the future. So if length is 30 it will take past 30 days of data to predict 1 future. If you want future 30 days then it is like looping day by day with current prediction to get into future. Have you seen my LSTM time series video. I cover in that
@anangsuwasto7660
@anangsuwasto7660 3 года назад
@@AIEngineeringLife Thank you. So we also need to predict the other features ex: T_out, TH_1, Visibility. since we don't have it in the next days after the first prediction right?
@rafainfernal
@rafainfernal 2 года назад
You rock!!
@soumitramehrotra5547
@soumitramehrotra5547 3 года назад
Hi Srivatsan, thank you for the video. I have one question regarding Time Series using LSTM. I am working on a project where I have 3000 users, and corresponding to each user I have Time Series data. One naive thing would be to train a model for each user independently, but is there any other way I can train my LSTM to address this case? I would appreciate any input you can provide. Thanks
@AIEngineeringLife
@AIEngineeringLife 3 года назад
Best way is to train individual model for each time series but if you see the distribution is not different then you can check my multi time series DeepAR video where you can train a global model as well as individual models on each time series
@mohammadrahmaty521
@mohammadrahmaty521 2 года назад
Thank you!
@nibinjoshy4218
@nibinjoshy4218 3 года назад
which version of tensorflow are you are using
@dilankawijesena5382
@dilankawijesena5382 2 года назад
Sir could you please tell how to input data to this model for getting more future predictions please help me
@AveRegina_
@AveRegina_ 2 года назад
I'm using RNN for my PG thesis work. I've a query. Do we have to run stationarity test for our time series data before feeding it in the neural network model... or this step is only required in traditional time series models like ARIMA?
@elispot17
@elispot17 2 года назад
Same question
@darshanayenkar5833
@darshanayenkar5833 2 года назад
THANK YOU SIR
@mp3311
@mp3311 2 года назад
Hi. Can you help me improve the accuracy of an Lstm model?
@riswandaayu5930
@riswandaayu5930 8 месяцев назад
how to predict per hour with lstm ?
@pyclassy
@pyclassy 3 года назад
hello sir can we get any tutorial on Conv-LSTM with complete explanation?
@qiguosun129
@qiguosun129 3 года назад
Thank you for sharing this data preprocessing technique. I have a question: what if I am dealing with a CNN-LSTM case? In other words, my input features are in t*n*H*W shape. Can I still use this method? Hope for your answer, thanks!
@AIEngineeringLife
@AIEngineeringLife 3 года назад
I doubt this can be used. This is mostly for sequence structured data and might not work for image data where we have H and W. I maybe wrong as well in this case
@qiguosun129
@qiguosun129 3 года назад
@@AIEngineeringLife Thanks for your reply, I found that using Einsum may be better for my specific problem.
@elizabethmj6506
@elizabethmj6506 2 года назад
Sir, Could pls explain how to treat time series classification if I have a feature with multiple values? The structure of the data is also given below label: 1 cl_data:10,10,2,12,12,12,12,12,1,1,1,1,1,3,3,3,3,3,1,1,1,1,1,1,1,1,1,1,3,3,1,1,1,1,1,3,3,3,3,3,3,1,1,1,1,1,1,3,3,3,1,1,1,1,1,1,1,1,1,1,3,3,3,3,3,3,1,1,1,1,1,1,1,4,4,4,4,2,2,1,1,1,1,1,1,2,1,1,1,3,3,3,3,1,1,1,1,10,10 label: 0 cl_Data:3,3,3,6,2,1,1,1,1,2,1,8,8,8,8,8,8,1,1,1,1,1,1,4,2,1,1,1,1,1,7,7,7,7,7,28,28,28,28,28,2,1,2,1,1,1,1,1,3,3,3,1,1,1,1,1,4,4,2,1,2,1,1,1,1,3,3,3,3,1,1,1,2,1,1,1,1,1
@edgaraskryzevicius9369
@edgaraskryzevicius9369 3 года назад
Your one of the features is appliance and your target is also appliance?
@AIEngineeringLife
@AIEngineeringLife 3 года назад
This is time series model and in this case future forecasts are dependent on past forecast in many cases by way of trend and seasonality. In time series typically target and feature might be similar but it takes lag of that variable rather learning one to one mapping
@vashistnarayansingh5995
@vashistnarayansingh5995 3 года назад
What should be the value of stride if i want a tumbling window. Is it equal to window size ?
@abidabdulazeez3930
@abidabdulazeez3930 3 года назад
Yes
@khanduom9341
@khanduom9341 3 года назад
Sir, Would you mind to share some suggestion how to predict the following using LSTM please... 0, 1 and 2 are labels for the size of the network traffic. I want to use frame 1 and frame 2 to predict frame 0 This is the sequence of the frame 1 0 0 0 2 0 0 0 2 0 0 0 1....... Thank You
@AIEngineeringLife
@AIEngineeringLife 3 года назад
Did you try it as time series classification problem?.. basically create LSTM and then last layer define for multi class classification. Passing a sequence it must predict if it is 0,1 or 2
@khanduom9341
@khanduom9341 3 года назад
Sir, thank you so much for the valuable insight. I will try to frame it as a time series classification problem and will see. I have one question regarding time series prediction in the above case. For example, If i take 13 previous observation, the model can definitely predict the next point observation i.e 14th index as mentioned in your 1st Use Case. As far as the 2nd Use Case is concerned, Is it possible to use 13 previous observation to predict the data with ONLY label 0 ......OR do i need to take 13 previous observation and set offset as 13. But then it will predict the whole 13 sequence including 0, 1 and 2 data labels and looks like a multiple input and multiple output prediction problem. Therefore, I will appreciate your advice whether it is not possible to use data labels 1 and 2 to predict data label 0 as a time series prediction problem. If not, the only option is to use multi class time series classification. Thank You
@Wanderlust1342
@Wanderlust1342 2 года назад
Thankyou
@statsnow3354
@statsnow3354 3 года назад
can i have the notebook file?
@AIEngineeringLife
@AIEngineeringLife 3 года назад
It is here - github.com/srivatsan88/End-to-End-Time-Series/blob/master/Time_Series_Functions_for_Sequencing.ipynb
@gurjeet333
@gurjeet333 2 года назад
Can u pls provide the link of the notebook
@UllasKC
@UllasKC Год назад
Please Share the code
@brucewillis8780
@brucewillis8780 3 года назад
This is a ripoff from the Official Tensorflow Tutorials on Time series forecating.
@AIEngineeringLife
@AIEngineeringLife 3 года назад
No it is not.. The images are taken from TF website and not the code. If you see the same code in TF website then paste the link here. If you see my notebook on this the first 3 lines are images i download from TF website - github.com/srivatsan88/End-to-End-Time-Series/blob/master/Time_Series_Functions_for_Sequencing.ipynb Moreover it is official TF documentation and examples are given to use or teach. In work do we not use documentation?
Далее
ГИГАЧАД МЭЙКЕР В PLANTS VS ZOMBIES 2!
00:49
180 - LSTM Autoencoder for anomaly detection
26:53
Просмотров 89 тыс.
LSTM Time Series Forecasting Tutorial in Python
29:53
Просмотров 209 тыс.
Unlocking the Future: How to Predict Weather with LSTM
34:40
TensorFlow Tutorial #23 Time-Series Prediction
28:06
Просмотров 195 тыс.
181 - Multivariate time series forecasting using LSTM
22:40
Finding Approximately Repeated Patterns in Time Series
1:08:17
ГИГАЧАД МЭЙКЕР В PLANTS VS ZOMBIES 2!
00:49