My input features for LSTM are different dimension, Is it possible to combine and train the network

6 views (last 30 days)
I have 6 input features for trining the LSTM network, but 1st coloumn has 2x28(contain 2 feature of 28 length) cells by 100 and all four are 1x100 each, Is it possible to combine all the feature and give it to network. since for LSTM we are using (sequenceInputLayer(N)) as input layer. Is there any alternate solution to this.

Accepted Answer

Hiro Yoshino
Hiro Yoshino on 24 May 2022
No, you cannot do that I think.
Why don't you conver the singular values into series data by using remat and put them under the 2x28 series data so you can use LSTM?
Another way to do this is creating a network with multi-inputs.
  1 Comment
Manoj Devaraju
Manoj Devaraju on 26 May 2022
Thank you so much for your response. I have tried first approach you mentioned worked well.
but creating a network with multi input, I tried to create but failed.
Can you please show me how to create multi-inputs network for my problem.

Sign in to comment.

More Answers (0)

Products


Release

R2021b

Community Treasure Hunt

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

Start Hunting!