Build your own gym environment

http://t.csdn.cn/ILs89 icon-default.png?t=M85Bhttp://t.csdn.cn/ILs89 Found that _init_ under the gym.envs folder does not need to add from...import...just need to register the corresponding folder Just download your own environment . It is worth noting: you need to specify the file path gym.envs. Your own environment folder name: the environment name you write yourself.

 

Contents of your own environment folder (gym.usv): _init_.py environment1.py environment2.py

Fill in the from path + environment 1 script name in _init_.py      and import the class environment name written in the script.

 

The class environment name in the script

 

Guess you like

Origin blog.csdn.net/qq_42314865/article/details/128228388