dvc icon indicating copy to clipboard operation
dvc copied to clipboard

dvc metrics/plots diff local files

Open shortcipher3 opened this issue 3 years ago • 3 comments

You can use git diff to compare to local files.

git diff [<options>] --no-index [--] <path> <path>

It would be nice to have the same functionality with dvc, for example I have a model and then a quantized model, since there are many ways to quantize a model I would like to have stages that take the original model and create the quantized model - so they belong in the same commit.

For reporting purposes and understanding I would like to show the change in the metrics/plots between the original model and the quantized model.

shortcipher3 avatar Jul 10 '22 04:07 shortcipher3

Also for model distillation.

karajan1001 avatar Jul 11 '22 03:07 karajan1001

@shortcipher3 regarding the plots it should be already available in latest release:

#dvc.yaml
stages: # <- note that plots is on the same level as stages
  ....
plots:
  quantized_vs_no_quantized:
    x: x_field # needs to be present in both files
    y:
      quantized_data_file.json: metric_name
      non_quantized_data_file.csv: metric_column
    template: linear
    title: "Comparing quantized vs non quantized"

pared avatar Jul 11 '22 08:07 pared

There's some background discussion on this in https://github.com/iterative/dvc/issues/5693.

dberenbaum avatar Jul 11 '22 15:07 dberenbaum