How to train "timedelaynet" using "trainNetwork" function in Deep Learning Toolbox?

4 views (last 30 days)
I have build a Time delay neural network and I wanna avoid use "train" function, and I want to train it using "trainNetwork" function to be able to use 'Adam' optimizer. is it possible ? If yes, How?

Answers (1)

Varun Sai Alaparthi
Varun Sai Alaparthi on 21 Oct 2022
Edited: Varun Sai Alaparthi on 21 Oct 2022
Hello Abdelwahab,
As of now it is not possible to train ‘timedelaynet’ using ‘trainNetwork’. If you are interested in using ‘trainNetwork, it might be better to model your data using ‘LSTM’ or ‘GRU’ networks which are supported by ‘trainNetwork’.
Please refer to this link for examples on time series analysis using our deep learning API:
Other possible work around to use ‘trainNetwork would be to design custom training loop for ‘timedelaynetand use ‘Adam’ optimiser in the training.
Please refer to this link for example on custom training loop:


Find more on Deep Learning Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by