Options for PG agent
Use an rlPGAgentOptions
object to specify options for policy
gradient (PG) agents. To create a PG agent, use rlPGAgent
For more information on PG agents, see Policy Gradient Agents.
For more information on the different types of reinforcement learning agents, see Reinforcement Learning Agents.
creates an
opt
= rlPGAgentOptionsrlPGAgentOptions
object for use as an argument when creating a PG
agent using all default settings. You can modify the object properties using dot
notation.
sets option properties using
name-value pairs. For example, opt
= rlPGAgentOptions(Name,Value
)rlPGAgentOptions('DiscountFactor',0.95)
creates an option set with a discount factor of 0.95
. You can specify
multiple name-value pairs. Enclose each property name in quotes.
rlPGAgent | Policy gradient reinforcement learning agent |