-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Following petting_zoo registry API #5557
Conversation
4350837
to
965f271
Compare
a1ef25b
to
18b6796
Compare
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.
Left some comments. Looks good overall.
@@ -20,6 +20,7 @@ and this project adheres to | |||
terminated teammates. (#5441) | |||
- Fixed wrong attribute name in argparser for torch device option (#5433)(#5467) | |||
- Fixed conflicting CLI and yaml options regarding resume & initialize_from (#5495) | |||
- Added minimal analytics collection to LL-API (#5511) |
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.
strange that this PR would contain this change, are you sure you cherry picked the right commits?
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.
yes this commit contains the default analytics side channels for custom trainers.
7b4cd0f
to
cb869c8
Compare
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.
Looks good. +1 to all the current comments and fixes, and I just added one. Cheers!
update the clone branch in colab
cb869c8
to
532fd27
Compare
96a58d3
to
abec580
Compare
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.
LGTM.
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.
Looks good to me. Please wait on another approval to merge
|
||
# Register each environment in default_registry as a PettingZooEnv | ||
for key in default_registry: | ||
key = key.replace("3", "Three") |
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 line does not look scalable. Is there a better way to do it. Like having a constant dictionary of key to replace value?
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.
Totally. However, a complete solution to this is non-trival. We could use a package like inflect (https://pypi.org/project/inflect/), however, this would require splitting the string into it's composite integer characters and letter components, convert the integer characters to their word equivalent, and then recombining, since inflect's number_to_words() strips all other non-numeric characters. This would be the most scalable solution, however, not sure if the added complexity is worth it at this point, since this really only applies to 3DBall.
* init petting_zoo registry * cherrypick Custom trainer editor analytics (#5511) * cherrypick "Update dotnet-format to address breaking changes introduced by upstream changes (#5528)" * Update colab to match pettingZoo import api * ToRevert: pull exp-petting-registry branch * Add init file to tests * Install pettingzoo-unity requirements for pytest * update pytest command * Add docstrings and comments * update coverage to pettingzoo folder * unset log level * update env string
Proposed change(s)
Follow the pettingZoo environment import:
Useful links (Github issues, JIRA tickets, ML-Agents forum threads etc.)
https://jira.unity3d.com/browse/MLA-2235
Try this for democolab link for this branch
Types of change(s)
Checklist
Other comments