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

metrics diff atol and rtol #10408

Open
wiktorowski211 opened this issue Apr 26, 2024 · 0 comments
Open

metrics diff atol and rtol #10408

wiktorowski211 opened this issue Apr 26, 2024 · 0 comments
Labels
A: metrics Related to dvc metrics feature request Requesting a new feature p3-nice-to-have It should be done this or next sprint

Comments

@wiktorowski211
Copy link

wiktorowski211 commented Apr 26, 2024

It would be useful to be able to filter the results of the dvc metrics diff command based on absolute or relative tolerance.

This type of solution allows, first of all, to filter negligible changes but also, for example, to build jobs on CI that fail if any of the metrics have changed too drastically.

Currently, this can be done with a custom python script, or using AWK:

dvc metrics diff | awk '($5 > ${metrics_absolute_tolerance} || $5 < -${metrics_absolute_tolerance}) {print; should_fail=1} END {exit should_fail}''

Looking forward for your feedback!

Tasks

No tasks being tracked yet.
@dberenbaum dberenbaum added feature request Requesting a new feature p3-nice-to-have It should be done this or next sprint A: metrics Related to dvc metrics labels Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A: metrics Related to dvc metrics feature request Requesting a new feature p3-nice-to-have It should be done this or next sprint
Projects
None yet
Development

No branches or pull requests

2 participants