iterative/dvc

metrics diff atol and rtol

wiktorowski211 opened this issue · 0 comments

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.