Skip to content

Commit 80246ba

Browse files
committed
small clearning of ippo cnn overcooked
1 parent af24458 commit 80246ba

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

baselines/IPPO/ippo_cnn_overcooked.py

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -418,27 +418,6 @@ def single_run(config):
418418
viz = OvercookedVisualizer()
419419
# agent_view_size is hardcoded as it determines the padding around the layout.
420420
viz.animate(state_seq, agent_view_size=5, filename=f"{filename}.gif")
421-
422-
"""
423-
filename = f'{config["ENV_NAME"]}_cramped_room_new'
424-
rewards = out["metrics"]["returned_episode_returns"].mean(-1).reshape((num_seeds, -1))
425-
reward_mean = rewards.mean(0) # mean
426-
reward_std = rewards.std(0) / np.sqrt(num_seeds) # standard error
427-
428-
plt.plot(reward_mean)
429-
plt.fill_between(range(len(reward_mean)), reward_mean - reward_std, reward_mean + reward_std, alpha=0.2)
430-
# compute standard error
431-
plt.xlabel("Update Step")
432-
plt.ylabel("Return")
433-
plt.savefig(f'{filename}.png')
434-
435-
# animate first seed
436-
train_state = jax.tree_map(lambda x: x[0], out["runner_state"][0])
437-
state_seq = get_rollout(train_state, config)
438-
viz = OvercookedVisualizer()
439-
# agent_view_size is hardcoded as it determines the padding around the layout.
440-
viz.animate(state_seq, agent_view_size=5, filename=f"{filename}.gif")
441-
"""
442421

443422

444423
def tune(default_config):

0 commit comments

Comments
 (0)