浏览代码

fix yamato

/develop/action-spec-gym
Andrew Cohen 4 年前
当前提交
0a3c5633
共有 1 个文件被更改,包括 4 次插入6 次删除
  1. 10
      ml-agents/tests/yamato/scripts/run_llapi.py

10
ml-agents/tests/yamato/scripts/run_llapi.py


episode_rewards = 0
tracked_agent = -1
while not done:
if group_spec.is_action_continuous():
action = np.random.randn(
len(decision_steps), group_spec.action_size
)
if group_spec.is_continuous():
action = np.random.randn(len(decision_steps), group_spec.size)
elif group_spec.is_action_discrete():
branch_size = group_spec.discrete_action_branches
elif group_spec.is_discrete():
branch_size = group_spec.discrete_branches
action = np.column_stack(
[
np.random.randint(

正在加载...
取消
保存