main content

create custom reinforcement learning environment template -凯发k8网页登录

create custom reinforcement learning environment template

since r2019a

description

example

rlcreateenvtemplate(classname) creates and opens a matlab® script that contains a template class representing a reinforcement learning environment. the template class contains an implementation of a simple cart-pole balancing environment. to define your custom environment, modify this template class. for more information, see create custom environment from class template.

examples

this example shows how to create and open a template file for a reinforcement learning environment.

for this example, name the class myenvclass

rlcreateenvtemplate("myenvclass")

this function opens a matlab® script that contains the class. by default, this template class describes a simple cart-pole environment.

modify this template class, and save the file as myenvclass.m

input arguments

name of environment class, specified as a string or character vector. this name defines the name of the class and the name of the matlab script.

version history

introduced in r2019a

网站地图