How to simulate LSTM networks?
Mostrar comentarios más antiguos
My goal is to train the network such that it can simulate an output given the inputs only.
I've trained an LSTM for sequence to sequence regression but I can only find a prediction function to see the output.
I've messed around with sim() and predict() from the system identification toolbox but they don't seem compatible with the LSTM net.
Is there a simulation counterpart to predict() in the deep learning toolbox?
Any help greatly appreciated!
Respuestas (1)
Sarvani Panguluri
el 9 de Sept. de 2020
0 votos
Hi,
I assume you are using Sequence to sequence regression using LSTM and using the predict function is not serving your purpose. You can try using the predictAndUpdateState method. predictAndUpdateState function is used to predict time steps one at a time and update the network state at each prediction.
Hope it helps!
5 comentarios
Lucas Ferreira-Correia
el 9 de Sept. de 2020
Sarvani Panguluri
el 9 de Sept. de 2020
Lucas Ferreira-Correia
el 9 de Sept. de 2020
Lucas Ferreira-Correia
el 10 de Sept. de 2020
Sarvani Panguluri
el 10 de Sept. de 2020
hi,
sim is usually called implicitly by calling the neural network as a function. For instance, these two expressions return the same result:
y = sim(net,x,xi,ai)
y = net(x,xi,ai)
Categorías
Más información sobre Deep Learning Toolbox en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!