LSTM for Regression in Matlab2017b???

3 ビュー (過去 30 日間)
Jake
Jake 2017 年 10 月 24 日
コメント済み: Zaher Babakrnejad 2019 年 7 月 9 日
The train network function currently does not allow LSTM memory networks with a regression output layer. How can I modify these layers or this function to make LSTM and regression work together?

回答 (3 件)

Amy
Amy 2017 年 10 月 27 日
Hi Jake,
The ability to use 'trainNetwork' with regression with LSTM layers might be added in a future release of MATLAB. For now, the best workaround I can suggest is to reformulate your regression problem into a classification one, if possible.
The idea would be to partition your regression targets into some number of bins that correspond to classes in a classification problem.
  1 件のコメント
Mona
Mona 2017 年 11 月 22 日
Hi Amy, I have a similar but different question. Do you think I can use the current released LSTM (MATLAB 2017b) for sequence to sequence training. In other words, I have a sequence of data and want my network to predict the next sequence of data.
Thanks a lot.

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


Shounak Mitra
Shounak Mitra 2018 年 4 月 23 日
Hi Jake and Mona,
Regression for LSTMs has been added in the 2018a release. You can learn more about it at https://www.mathworks.com/help/nnet/ug/long-short-term-memory-networks.html.
Mona: You can find an example for sequence to sequence regression at https://www.mathworks.com/help/nnet/examples/sequence-to-sequence-regression-using-deep-learning.html
To find a list of examples for deep learning visit the documentation page at https://www.mathworks.com/help/nnet/examples.html or the website at https://www.mathworks.com/solutions/deep-learning/examples.html
  2 件のコメント
NM
NM 2018 年 5 月 14 日
編集済み: NM 2018 年 5 月 14 日
Hi Shounak Mitra, I am using MATLAB 2018a, Can you please tell me/give me a hint how can I modify the above mentioned "example for sequence to sequence regression" to use it with "double" type predictor data array Xtrain of size 10x843 and response data array Ytrain of sixe 1x843.
The example is for cell type data array, I couldn't translate the code to be used for double type data array. Please I want to forecast load using this example.
Zaher Babakrnejad
Zaher Babakrnejad 2019 年 7 月 9 日
Did you find any solution ?

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


saeed azari
saeed azari 2018 年 7 月 20 日
Hi ,i use MATLAB 2018a.
1- my input data size is 2827*73000, and output data size is 257*73000. is this possible?
2- i want to used a unidirectional LSTM, where have an LSTM layer as its first layer followed by two fullyconnected layers with ReLU activations. The number of memory cells in the LSTM was set at 500, and the number of nodes in the fully-connected layers was 2048.
but i cant do this. because the last fully-connected layer size should be same as the 257(i.e output dimansion). i can't make the lstm by 5 layers(sequenceInputLayer(2827)-lstm(500)-fully-connected (2048)- fully-connected (2048) - regression layer)
i want to implement the part 2 for the variance mapping of audio. my output is reverb signal and my input is clean signal PSD.
please help me.

Community Treasure Hunt

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

Start Hunting!

Translated by