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

feat(connector): single agent #119

Merged
merged 21 commits into from
May 12, 2023
Merged

feat(connector): single agent #119

merged 21 commits into from
May 12, 2023

Conversation

sash-a
Copy link
Collaborator

@sash-a sash-a commented Apr 19, 2023

Changed connector to be a single agent environment.

Changes:

  • Remove the switch_perspective method.
  • Changed observation specs
  • Updated tests
  • Updated docs

@sash-a sash-a self-assigned this Apr 19, 2023
@sash-a sash-a requested a review from clement-bonnet April 19, 2023 09:03
@sash-a sash-a changed the title feat (connector): single agent feat(connector): single agent Apr 19, 2023
Copy link
Contributor

@dluo96 dluo96 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution @sash-a! I have left a few comments 😄

Copy link
Contributor

@coyettev coyettev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Sasha, the PR looks good to me, I just left a few comments 😄

docs/environments/connector.md Outdated Show resolved Hide resolved
jumanji/environments/routing/connector/env.py Outdated Show resolved Hide resolved
jumanji/environments/routing/connector/env.py Outdated Show resolved Hide resolved
jumanji/environments/routing/connector/env_test.py Outdated Show resolved Hide resolved
sash-a and others added 3 commits May 2, 2023 12:18
Co-authored-by: Daniel <57721552+dluo96@users.noreply.github.com>
Copy link
Collaborator

@clement-bonnet clement-bonnet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for your contribution.
I have 2 comments/questions:

  • The registered version of Connector needs to be upped to "Connector-v1".
  • Have you tried running the A2C network on this? The _make_raw_env function in jumanji/training/setup_train.py must remove the call to MultiToSingleWrapper and the network probably needs to be updated to account for the new observation.

Please let me know if these make sense to you.

jumanji/environments/routing/connector/env.py Outdated Show resolved Hide resolved
jumanji/environments/routing/connector/env.py Outdated Show resolved Hide resolved
jumanji/environments/routing/connector/reward.py Outdated Show resolved Hide resolved
clement-bonnet
clement-bonnet previously approved these changes May 12, 2023
Copy link
Collaborator

@clement-bonnet clement-bonnet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution. This makes the environment more consistent with the rest of the library! 🚀

jumanji/environments/routing/connector/env.py Show resolved Hide resolved
dluo96
dluo96 previously approved these changes May 12, 2023
Copy link
Contributor

@dluo96 dluo96 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a few minor comments and suggestions

Co-authored-by: Daniel <57721552+dluo96@users.noreply.github.com>
@sash-a sash-a dismissed stale reviews from dluo96 and clement-bonnet via c903ff9 May 12, 2023 11:10
@sash-a sash-a enabled auto-merge (squash) May 12, 2023 12:40
@sash-a sash-a merged commit e2feb60 into main May 12, 2023
@sash-a sash-a deleted the feat/single-agent-connector branch May 12, 2023 14:07
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

Successfully merging this pull request may close these issues.

4 participants