Teacher forcing for a LSTM network
Afficher commentaires plus anciens
Is there a way to implement teacher forcing for a LSTM network in MATLAB? Hopefully there is an option buried somewhere.
Réponses (2)
David Willingham
le 24 Mai 2022
0 votes
Hi Philip,
This example shows how teacher forcing can be implemented with LSTM's in MATLAB.Sequence-to-Sequence Translation Using Attention.
1 commentaire
Philip Hua
le 24 Mai 2022
David Willingham
le 24 Mai 2022
Modifié(e) : David Willingham
le 24 Mai 2022
0 votes
Please see the attached example, trainLSTM_seq2seq. Is this what you were looking for? I.e. an example for a standard LSTM model?
5 commentaires
Philip Hua
le 25 Mai 2022
David Willingham
le 26 Mai 2022
Hi Philip,
The above example uses the custom training functionality in the deep learning toolbox. We currently don't have support for it as an option using trainNetwork.
Philip Hua
le 6 Juin 2022
David Willingham
le 7 Juin 2022
If your problem is a time-series problem then it possibly could. Have you tried adapting this example to meet your use case? If so, is it getting the result you expect?
Philip Hua
le 7 Juin 2022
Catégories
En savoir plus sur Deep Learning Toolbox dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!