If metrics file(s) has only no old version (it was just created):
$ dvc metrics diff HEAD^
WARNING: Metrics file 'metrics/eval.json' does not exist at the reference 'HEAD^'.
WARNING: Metrics file 'metrics/train.json' does not exist at the reference 'HEAD^'.
ERROR: unexpected error - 'HEAD^'
Expected the same output with no difference:
$ dvc metrics diff HEAD^
Path Metric Value Change
metrics/train.json took 0.004 -
metrics/train.json num_steps 2500 -
metrics/train.json learning_rate 0.015 -
metrics/eval.json accuracy 0.897 -
In JSON - the same output with no old values.
Also, the error message is misleading: ERROR: unexpected error - 'HEAD^'. It should be something like ERROR: the old version of the metric file is not found
Another problem is writing status to STDOUT (it should be in STDIN).
$ dvc metrics diff HEAD
No changes.
Summary:
If metrics file(s) has only no old version (it was just created):
Expected the same output with no difference:
In JSON - the same output with no old values.
Also, the error message is misleading:
ERROR: unexpected error - 'HEAD^'. It should be something likeERROR: the old version of the metric file is not foundAnother problem is writing status to STDOUT (it should be in STDIN).
Summary: