LSTM encoder-decoder model

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 件のコメント

Lisa Huber
Lisa Huber 2021 年 5 月 5 日
編集済み: Lisa Huber 2021 年 5 月 5 日
Since 2021a the TimeDistributed Layer is available.
But still I cannot find any RepeatVector layer. I mean the layer is really really simple it just repeats a vector like repmat without any weights or anything to train...
Dear Tomohiro, have you found any solution?
Question to the staff: Is there a way to implement a RepeatVector layer by myself?
David Willingham
David Willingham 2021 年 5 月 5 日
Hi Lisa, our equivalent to the RepeatVector layer behaviour is to use the fullyconnectedLayer.
angeline yap
angeline yap 2022 年 2 月 12 日
Hi David, i dont see the fullyconnectedLayer is equivalent to RepeatVector as RepeatVector is simple duplicate the produced vector. Can you provide more information of how fullyconnectedlayer can be implemted as repeatVector. Thank you
Abhishek Shivayya
Abhishek Shivayya 2022 年 3 月 31 日
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 2022 年 4 月 8 日
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?

サインインしてコメントする。

回答 (2 件)

David Willingham
David Willingham 2021 年 5 月 5 日
編集済み: David Willingham 2022 年 3 月 31 日

0 投票

Hi Tomohiro,
See this example of how to perform Time Series Forecasting using LSTM in MATLAB.

2 件のコメント

Abhishek Shivayya
Abhishek Shivayya 2022 年 3 月 31 日
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.
David Willingham
David Willingham 2022 年 3 月 31 日
Hi Abhishek,
Check out this example:
It uses an autoencoders.

サインインしてコメントする。

Marcello Ferro
Marcello Ferro 2026 年 1 月 14 日

0 投票

Hi Tomohiro,
check this seq-to-seq encoder-decoder model with attention (translation task): https://it.mathworks.com/help/deeplearning/ug/sequence-to-sequence-translation-using-attention.html

カテゴリ

ヘルプ センター および File ExchangeDeep Learning Toolbox についてさらに検索

質問済み:

2019 年 7 月 26 日

回答済み:

2026 年 1 月 14 日

Community Treasure Hunt

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

Start Hunting!

Translated by