Understanding Action Dimension Formatting in MATLAB's DDPG with LSTM-Based Networks

5 views (last 30 days)
In MATLAB's Reinforcement Learning Toolbox, when using DDPG with LSTM-based actor and critic networks, the conversion of actions to dlarray is handled automatically. Since users do not have direct control over this process: Are actions formatted with a 'T' (time) dimension or a 'C' (channel) dimension when passed between the actor and critic networks? How does MATLAB structure these actions to ensure compatibility with recurrent layers, such as aligning sequences for LSTM time steps?

Answers (1)

Snehal
Snehal on 24 Mar 2025
I understand that you are trying to know how actions are formatted by the underlying mechanism when using MATLAB’s DDPG with LSTM-Based Networks.
Actions are formatted with a 'T' (time) dimension to ensure compatibility with LSTM layers.
The data is structured in the ‘CBT’ format to ensure that both actor and critic networks can process sequences effectively.
Therefore, MATLAB automatically handles the reshaping of actions to align them with the expected input format for LSTM layers.
For more insights, you may refer to the following documentation link:
Below is the link to a similar MATLAB question addressed previously:
Hope this helps.

Categories

Find more on Sequence and Numeric Feature Data Workflows 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!