Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visuallizer throws error in visible_actions branch #154

Open
gregSchwartz18 opened this issue Jul 2, 2019 · 2 comments
Open

Visuallizer throws error in visible_actions branch #154

gregSchwartz18 opened this issue Jul 2, 2019 · 2 comments

Comments

@gregSchwartz18
Copy link

Running the visuallizer throws the error

  File "visuallizer_rllib.py", line 263, in <module>
    visualizer_rllib(args)
  File "visuallizer_rllib.py", line 170, in visualizer_rllib
    info={'all_agents_actions': last_actions})
  File "/home/gds38/multi8/lib/python3.6/site-packages/ray/rllib/agents/agent.py", line 410, in compute_action
    episode=episode)
  File "/home/gds38/multi8/lib/python3.6/site-packages/ray/rllib/evaluation/policy_graph.py", line 121, in compute_single_action
    episodes=episodes)
  File "/home/gds38/multi8/lib/python3.6/site-packages/ray/rllib/evaluation/tf_policy_graph.py", line 182, in compute_actions
    prev_reward_batch, episodes=episodes[0])
  File "/home/gds38/multi8/lib/python3.6/site-packages/ray/rllib/agents/a3c/a3c_policy_graph_causal.py", line 281, in _build_compute_actions
    [e.prev_action for e in episodes[self.agent_id]]))
KeyError: 'agent-0'

I have attached a sample log file to help with replication.

log_file.zip

@eugenevinitsky
Copy link
Owner

Hi @gregSchwartz18, giving it a try now. I'll get back to you shortly.

@eugenevinitsky
Copy link
Owner

Hi @gregSchwartz18, any chance you can submit a PR with your branch? That way I can resolve code incompatibilities faster.

gregSchwartz18 added a commit to gregSchwartz18/sequential_social_dilemma_games that referenced this issue Jul 2, 2019
gregSchwartz18 added a commit to gregSchwartz18/sequential_social_dilemma_games that referenced this issue Jul 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants