Skip to content

metrics diff atol and rtol #10408

Open
Open
@wiktorowski211

Description

@wiktorowski211

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

Preview Give feedback
No tasks being tracked yet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestRequesting a new featurep3-nice-to-haveIt should be done this or next sprint

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions