rlDDPGAgent
Deep deterministic policy gradient (DDPG) reinforcement learning agent
Since R2019a
Description
The deep deterministic policy gradient (DDPG) algorithm is an actor-critic, model-free, online, off-policy reinforcement learning method which computes an optimal policy that maximizes the long-term reward. The action space can only be continuous.
For more information, see Deep Deterministic Policy Gradient (DDPG) Agents. For more information on the different types of reinforcement learning agents, see Reinforcement Learning Agents.
Creation
Syntax
Description
Create Agent from Observation and Action Specifications
creates a deep deterministic policy gradient agent for an environment with the given
observation and action specifications, using default initialization options. The actor
and critic in the agent use default deep neural networks built from the observation
specification agent
= rlDDPGAgent(observationInfo
,actionInfo
)observationInfo
and the action specification
actionInfo
. The ObservationInfo
and
ActionInfo
properties of agent
are set to
the observationInfo
and actionInfo
input
arguments, respectively.
creates a deep deterministic policy gradient agent for an environment with the given
observation and action specifications. The agent uses default networks configured using
options specified in the agent
= rlDDPGAgent(observationInfo
,actionInfo
,initOpts
)initOpts
object. For more information on
the initialization options, see rlAgentInitializationOptions
.
Create Agent from Actor and Critic
Specify Agent Options
creates a DDPG agent and sets the agent
= rlDDPGAgent(___,agentOptions
)AgentOptions
property to the agentOptions
input argument. Use this syntax after
any of the input arguments in the previous syntaxes.
Input Arguments
Properties
Object Functions
train | Train reinforcement learning agents within a specified environment |
sim | Simulate trained reinforcement learning agents within specified environment |
getAction | Obtain action from agent, actor, or policy object given environment observations |
getActor | Extract actor from reinforcement learning agent |
setActor | Set actor of reinforcement learning agent |
getCritic | Extract critic from reinforcement learning agent |
setCritic | Set critic of reinforcement learning agent |
generatePolicyFunction | Generate MATLAB function that evaluates policy of an agent or policy object |
Examples
Version History
Introduced in R2019a
See Also
Apps
Functions
getAction
|getActor
|getCritic
|generatePolicyFunction
|generatePolicyBlock
|getActionInfo
|getObservationInfo
Objects
rlDDPGAgentOptions
|rlAgentInitializationOptions
|rlQValueFunction
|rlContinuousDeterministicActor
|rlTD3Agent
|rlSACAgent