Skip to content

exp show: add output of params diff & metrics diff to workspace entry within --show-json #6778

@mattseddon

Description

@mattseddon

In the VS Code extension we recently added in a feature to our experiments table which highlights params and metrics which have changed with respect to the previous commit.

Example (example-dvc-experiments)

Given:

  1. dvc params diff --show-json = {"params.yaml": {"train.epochs": {"old": 10, "new": 11, "diff": 1}}}
  2. dvc metrics diff --show-json = {}

Then we will show:

image

The current cli implementation means that we now have to run 3 commands to get the required data for our table. These are:

  1. dvc exp show --show-json
  2. dvc params diff --show-json
  3. dvc metrics diff --show-json

We are still running into repo locks when trying to run any of the above commands. Also, having to run all three is slower.

Ideally I'd like to include the output of 2 & 3 within the workspace dict of 1 but open to other suggestions.

Note: If we pushed this data into exp show then we would also be able to highlight the same records in the cli table.

Related issues:

Metadata

Metadata

Assignees

No one assigned

    Labels

    product: VSCodeIntegration with VSCode extension

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions