-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Multiagent simplerl #5066
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
Multiagent simplerl #5066
Conversation
pass | ||
|
||
def set_actions(self, behavior_name, action): | ||
# im so sorry |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lolwut
@@ -314,6 +314,185 @@ def _make_batched_step( | |||
return (decision_step, terminal_step) | |||
|
|||
|
|||
class MultiAgentEnvironment(BaseEnv): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I understand nothing this class does. Please add comments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, it is a pretty horrible thing
|
||
# tests in this file won't be tested on GPU machine | ||
pytestmark = pytest.mark.check_environment_trains | ||
|
||
|
||
@pytest.mark.parametrize("action_sizes", [(0, 1), (1, 0)]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this be tested for combinations of rank 1, 2 and 3 observations and with and LSTM config? (To make sure it does not crash at least)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added some tests for LSTM, variable length obs, and visual
self.dones[name_and_num] = False | ||
self.envs[name_and_num].reset() | ||
# HACK | ||
self.behavior_spec = self.envs[name_and_num].behavior_spec |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This dos not need to be in the loop
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved
Proposed change(s)
Describe the changes made in this PR.
Useful links (Github issues, JIRA tickets, ML-Agents forum threads etc.)
Types of change(s)
Checklist
Other comments