-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
[air output] Print single trial config + results as table #34788
Conversation
Signed-off-by: Kai Fricke <[email protected]>
|
Thanks for the feedback!
I've added more content to the issue:
At the moment we print 3 "automatic" results (there may be more for rllib). The reason why I'd at least want to keep Most metrics are not like that, so we don't print them, but at least for
IMO, a full overview of configurations is crucial in debugging log outputs. When I'm just looking at a job output, I will want to know the full trial configurations somewhere. If overview is a concern, maybe we can add a header to the config/results tables to make clear which is which?
I'll check if there's a better style in tabulate for that |
Signed-off-by: Kai Fricke <[email protected]>
Next iteration:
Consider this a work in process - happy to iterate! |
Signed-off-by: Kai Fricke <[email protected]>
Signed-off-by: Kai Fricke <[email protected]>
Signed-off-by: Kai Fricke <[email protected]>
Random idea, would something like this work? And we can separately toggle when we want to surface config.
|
Generally not a problem, as the data model is extensible. Should we do that in a follow-up though (as that's more of a general change vs. this PR that just updates and beautifies existing output) |
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.
nice work
if not table_data: | ||
return | ||
|
||
print( |
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.
just curious, we are not using a logger for these?
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.
No, we want the output to appear in stdout. We can potentially switch to a logger that streams to stdout at some point
Signed-off-by: Kai Fricke <[email protected]>
Signed-off-by: Kai Fricke <[email protected]>
Signed-off-by: Kai Fricke <[email protected]>
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.
code looks pretty reasonable to me.
Includes #34788 This PR prints experiment information at the start of the experiment. Signed-off-by: Kai Fricke <[email protected]>
…t#34788) This PR makes a number of improvements to tackle issues uncovered in dogfooding: 1. Instead of just a print, we render a table for configs and results at the start of training (closes ray-project#34784) 2. We round float results to 5 significant numbers after the decimal point (closes ray-project#34785) 3. We track the last printed result and only print the result at the end of training if it hasn't been printed before (closes ray-project#34786) 4. We divide the results by "automatic" results and trainer-specific results (closes ray-project#34787) Signed-off-by: Kai Fricke <[email protected]>
…oject#34952) Includes ray-project#34788 This PR prints experiment information at the start of the experiment. Signed-off-by: Kai Fricke <[email protected]>
Why are these changes needed?
This PR makes a number of improvements to tackle issues uncovered in dogfooding:
Example output:
Related issue number
Checks
git commit -s
) in this PR.scripts/format.sh
to lint the changes in this PR.method in Tune, I've added it in
doc/source/tune/api/
under thecorresponding
.rst
file.