Can I train closed-loop time-series network in parallel?

3 views (last 30 days)
I have implemented a NARX recurrent neural network.
I have implemented it first as an open loop network, and then train it using the parallel computing capability. This works as expected.
However, when I try to use the parallel computing capability to train my net as a closed-loop, my computer hangs indefinitely.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 6 Dec 2018
Note that parallelism happens across samples, or in the case of time series across different series. However, if the network has only input delays, with no layer delays, the delayed inputs can be precalculated so that for the purposes of computation, the time steps become different samples and can be parallelized. This is the case for networks such as "timedelaynet" and open-loop versions of "narxnet" and "narnet".
If a network has layer delays, then time cannot be 'flattened' for purposes of computation, and so single series data cannot be parallelized. This is the case for networks such as "layrecnet" and closed-loop versions of "narxnet" and "narnet". However, if the data consists of multiple sequences, it can be parallelized across the separate sequences.
See this documentation page for more information:

More Answers (0)

Categories

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!