rlContinuousGaussianActor
R2026bStochastic Gaussian actor with a continuous action space for reinforcement learning agents
Since R2022a
Description
This object implements a function approximator to be used as a stochastic actor
within a reinforcement learning agent with a continuous action space. A continuous Gaussian
actor takes an environment observation as input and returns as output a random action sampled
from a parameterized Gaussian probability distribution, thereby implementing a parametrized
stochastic policy. After you create an rlContinuousGaussianActor object, use
it to create a suitable agent, such as an rlACAgent or rlPGAgent agent. For
more information on creating actors and critics, see Create Actors, Critics, and Policy Objects.
Creation
Description
creates a Gaussian stochastic actor with a continuous action space using the deep neural
network actor = rlContinuousGaussianActor(net,observationInfo,actionInfo,Name=Value)net as approximation model.
You must use the name-value pair arguments ActionMeanOutputNames
and ActionStandardDeviationOutputNames to specify the names of the
network output layers that return the mean and standard deviation of each component of the
action, respectively. The actor uses the output of these two layers to represent the
Gaussian probability distribution from which the action is sampled.
Note
actor does not enforce constraints set by the action
specification. When using this actor in a different agent than SAC, you must enforce
action space constraints within the environment.
You can also specify the ObservationInputNames argument (to
explicitly associate the layers of your network with specific environment channels) and
the UseDevice property using optional name-value pair arguments. For
example, to use a GPU for prediction, specify UseDevice="gpu".
Input Arguments
Name-Value Arguments
Properties
Object Functions
rlACAgent | Actor-critic (AC) reinforcement learning agent |
rlPGAgent | Policy gradient (PG) reinforcement learning agent |
rlPPOAgent | Proximal policy optimization (PPO) reinforcement learning agent |
rlSACAgent | Soft actor-critic (SAC) reinforcement learning agent |
getAction | Obtain action from agent, actor, or policy object given environment observations |
evaluate | Evaluate function approximator object given observation (or observation-action) input data |
gradient | (Not recommended) Evaluate gradient of function approximator object given observation and action input data |
accelerate | (Not recommended) Option to accelerate computation of gradient for approximator object based on neural network |
getLearnableParameters | Obtain learnable parameter values from agent, function approximator, or policy object |
setLearnableParameters | Set learnable parameter values of agent, function approximator, or policy object |
setModel | Set approximation model in function approximator object |
getModel | Get approximation model from function approximator object |
Examples
Extended Capabilities
Version History
Introduced in R2022a
