-
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
[debug] Require all behavior names to have a matching YAML entry #5210
Conversation
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.
Sorry it took me so long. I have some questions about the code that I left in comments.
# If we're loading for a file, make sure we have strict on | ||
configured_dict["strict"] = True |
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.
Would it be simpler to remove these two lines and make strict True by default rather than False line 817 ?
@@ -800,6 +814,7 @@ class RunOptions(ExportableSettings): | |||
# These are options that are relevant to the run itself, and not the engine or environment. | |||
# They will be left here. | |||
debug: bool = parser.get_default("debug") | |||
strict: bool = False |
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 you add a little comment here on what strict does?
* Add strict check to settings.py * Remove warning from trainer factory, add test * Add changelog * Fix test * Update changelog * Remove strict CLI options * Remove strict option, rename, make strict default * Remove newline * Update comments * Set default dict to actually default to a default dict * Fix tests * Fix tests again * Default trainer dict to requiring all fields * Fix settings typing * Use logger * Add default_settings to error (cherry picked from commit 86a4070)
…) (#5296) * Add strict check to settings.py * Remove warning from trainer factory, add test * Add changelog * Fix test * Update changelog * Remove strict CLI options * Remove strict option, rename, make strict default * Remove newline * Update comments * Set default dict to actually default to a default dict * Fix tests * Fix tests again * Default trainer dict to requiring all fields * Fix settings typing * Use logger * Add default_settings to error (cherry picked from commit 86a4070)
Proposed change(s)
For most cases, require that the behavior name be specified in the RunOptions, or that
default_settings
is set. The exception is the case that no YAML is specified at all; then, use default parameters for all settings.Note that the Changelog conflict was merged assuming this would be cherry-picked into R17.
Useful links (Github issues, JIRA tickets, ML-Agents forum threads etc.)
JIRA MLA-1865
Types of change(s)
Checklist
Other comments