![](/img/trans.png)
[英]How to tell an agent that some actions in the action space are currently not available in gym?
[英]How to create Action space in GYM with range from 0 to 10 with 0.5 difference between the consecutive actions?
我打算在 GYM 中創建范圍從 0 到 10 的動作空間
I want action space like [0 0.5 1 ..... 10]
另一種方法是使用枚舉。 見下文
from enum import Enum
class Actions(Enum):
action1 = 0
action2 = 1
action3 = 2
# when you call
action == Actions.action2.value
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.