-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Two fixes for handling edge cases in MLflow logging #16451
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
Conversation
* Long parameter values are truncated, instead of not logged at all. * In case there are more than 100 parameters, they are logged in chunks.
for more information, see https://pre-commit.ci
Let me know if you think that this small fix should be added to CHANGELOG. |
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
Minor comments
Let me know if you think that this small fix should be added to CHANGELOG.
Yes please that would be appreciated. For fixes we always prefer to have it documented in the changelog. Thank you
Done. |
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.
Great work!
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> (cherry picked from commit 9346151)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> (cherry picked from commit 9346151)
What does this PR do?
In another pull request it was discussed that it's better to truncate the parameter values, rather than not log them at all, if the length exceeds the MLflow limit. I found another problem with the recently introduced change: A batch logging request can contain at most 100 parameters. This PR will log the parameters in chunks of 100 parameters, if there are more than 100.
Before submitting
PR review
Anyone in the community is welcome to review the PR.
Before you start reviewing, make sure you have read the review guidelines. In short, see the following bullet-list:
Did you have fun?
Make sure you had fun coding 🙃