LSTM encoder-decoder model

58 views (last 30 days)
Tomohiro Oka
Tomohiro Oka on 26 Jul 2019
Commented: Hend ElMohandes on 8 Apr 2022
I'd like to make LSTM encoder-decoder model with deep learning toolbox, whichbased on this link(this is for making same model with Keras). I'm trying to make the timeseries prediction(seq2seq).
However, the corresponded warper layer fucvtions(ex TimeDistributed, RepeatVector) are not found in the deep learnig tool box.
Is there any solutions to make LSTM encoder-decoder model with Matlab.
  5 Comments
Abhishek Shivayya
Abhishek Shivayya on 31 Mar 2022
Hi Tomohiro, did you find any solution to this problem? even I am finding difficult to develop LSTM encoder-decoder model for sequence2sequence modeling. If you have any refernece code in matlab related to this can you please share me? Thanks in advance.
Hend ElMohandes
Hend ElMohandes on 8 Apr 2022
I've been attempting to do the same , wanted to create an encoder -decoder (seq to seq) for regression using matlab and its been very difficult.
Did you reach any solution or source of help?

Sign in to comment.

Answers (1)

David Willingham
David Willingham on 5 May 2021
Edited: David Willingham on 31 Mar 2022
Hi Tomohiro,
See this example of how to perform Time Series Forecasting using LSTM in MATLAB.
  2 Comments
Abhishek Shivayya
Abhishek Shivayya on 31 Mar 2022
Hello Mr.David, thanks for the reference to perform time series forecasting. I am working on similar concept to reconstruct the time series data using LSTM encoder - decoder based for anomaly detection. I developed different blocks for encoder and decoder and then connected layers with a bridge of fullyconnectedlayer(repeatvector) and output layer with regressionlayer. Once the model is trained on normal data, I am trying to reconstruct for faulty data and I would also like to access the output of an Encoder which encoded into latent space vector (repeatvector). I didnt find any reference how to get the encoder output once the model has been trained. Can you please let me know how to perform these kind of problems, it would be great help.

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!