I intend to create Action space in GYM with range from 0 to 10
I want action space like [0 0.5 1 ..... 10]
Another way is to use Enum. See below
from enum import Enum
class Actions(Enum):
action1 = 0
action2 = 1
action3 = 2
# when you call
action == Actions.action2.value
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.