Skip to content

Is it possible to track metrics without using DVC Pipelines? #7371

Answered by daavoo
AlexandreBrown asked this question in Help
Discussion options

You must be logged in to vote

You should be able to use dvc metrics commands using as targets any file in any of the supported formats even if those files are not associated to a DVC pipeline:

git init
dvc init
echo '{"foo": 1}' > foo.json
git add .
git commit -m "1"
dvc metrics show foo.json
Path      foo                                                         
foo.json  1
echo '{"foo": 2}' > foo.json
git add foo.json
git commit -m "2"
dvc metrics diff --targets foo.json
Path      Metric    HEAD    workspace    Change                       
foo.json  foo       1       2            1

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by AlexandreBrown
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants