Deep Q-network reinforcement learning agent
The deep Q-network (DQN) algorithm is a model-free, online, off-policy reinforcement learning method. A DQN agent is a value-based reinforcement learning agent that trains a critic to estimate the return or future rewards. DQN is a variant of Q-learning, and it operates only within discrete action spaces.
For more information, Deep Q-Network Agents. For more information on the different types of reinforcement learning agents, see Reinforcement Learning Agents.
creates a DQN agent for an environment with the given observation and action
specifications, using default initialization options. The critic representation in the
agent uses a default multi-output Q-value deep neural network built from the observation
specification agent
= rlDQNAgent(observationInfo
,actionInfo
)observationInfo
and the action specification
actionInfo
.
creates a DQN agent for an environment with the given observation and action
specifications. The agent uses a default network configured using options specified in
the agent
= rlDQNAgent(observationInfo
,actionInfo
,initOpts
)initOpts
object. For more information on the initialization
options, see rlAgentInitializationOptions
.
creates a DQN agent with the specified critic network using a default option set for a
DQN agent.agent
= rlDQNAgent(critic
)
creates a DQN agent with the specified critic network and sets the agent
= rlDQNAgent(critic
,agentOptions
)AgentOptions
property to the agentOptions
input argument. Use this syntax after
any of the input arguments in the previous syntaxes..
train | Train reinforcement learning agents within a specified environment |
sim | Simulate trained reinforcement learning agents within specified environment |
getAction | Obtain action from agent or actor representation given environment observations |
getActor | Get actor representation from reinforcement learning agent |
setActor | Set actor representation of reinforcement learning agent |
getCritic | Get critic representation from reinforcement learning agent |
setCritic | Set critic representation of reinforcement learning agent |
generatePolicyFunction | Create function that evaluates trained policy of reinforcement learning agent |
Deep Network Designer | rlAgentInitializationOptions
| rlDQNAgentOptions
| rlQValueRepresentation