create custom reinforcement learning environment using your reset and step functions -凯发k8网页登录
create custom reinforcement learning environment using your reset and step functions
since r2019a
description
use rlfunctionenv
to create a custom reinforcement learning
environment by supplying your own reset and step matlab® functions. this object is useful when you want to create an environment
different from the built-in ones available with rlpredefinedenv
. to
verify the operation of your environment, rlfunctionenv
automatically calls
validateenvironment
after creating the
environment.
creation
description
creates a reinforcement learning environment using the provided observation and action
specifications, env
= rlfunctionenv(observationinfo
,actioninfo
,stepfcn
,resetfcn
)observationinfo
and actioninfo
,
respectively. the stepfcn
and resetfcn
arguments
are the names of your step and reset matlab functions, respectively, and they are used to set the stepfcn
and resetfcn
properties of env
.
input arguments
properties
object functions
getactioninfo | obtain action data specifications from reinforcement learning environment, agent, or experience buffer |
getobservationinfo | obtain observation data specifications from reinforcement learning environment, agent, or experience buffer |
train | train reinforcement learning agents within a specified environment |
sim | simulate trained reinforcement learning agents within specified environment |
validateenvironment | validate custom reinforcement learning environment |
examples
version history
introduced in r2019asee also
functions
rlpredefinedenv
|rlcreateenvtemplate
|validateenvironment
|rlsimulinkenv
|getobservationinfo
|getactioninfo