Skip to main content

Description

Display a table of experiments with their parameters and metrics. This command provides a comprehensive view of all experiments, allowing you to compare results across different runs and identify the best performing configurations.
Use --only-changed to focus on metrics and parameters that vary across experiments, making it easier to identify what impacts performance.

Usage

Options

Filtering Options

boolean
default:"false"
Show experiments derived from the tip of all Git branches.
boolean
default:"false"
Show experiments derived from all Git tags.
boolean
default:"false"
Show experiments from all Git commits (not just latest).
string[]
Show experiments derived from specific Git revisions.
integer
default:"1"
Show experiments from the last N commits.
boolean
default:"false"
Hide failed experiments in the table.
boolean
default:"false"
Hide queued experiments in the table.
boolean
default:"false"
Hide workspace row in the table.

Display Options

boolean
default:"false"
Only show metrics and parameters with values varying across experiments. Very useful for identifying what parameters affect results.
string[]
Remove columns matching the specified regex pattern. Can be used multiple times.
string[]
Preserve only columns matching the specified regex pattern. Can be used multiple times.
boolean
default:"false"
Show only parameters that are stage dependencies (defined in dvc.yaml).
boolean
default:"false"
Do not pipe output into a pager. Useful when redirecting output or in CI/CD.
boolean
default:"false"
Always show Git commit SHAs instead of branch/tag names.

Sorting Options

string
Sort experiments by the specified metric or parameter.
string
default:"asc"
Sort order to use with --sort-by. Options: asc (ascending) or desc (descending).

Output Format Options

boolean
default:"false"
Print output in JSON format instead of a human-readable table.
boolean
default:"false"
Print output in CSV format instead of a human-readable table.
boolean
default:"false"
Show output in Markdown table format (GitHub Flavored Markdown).
integer
default:"5"
Round metrics and parameters to N digits after the decimal point.
boolean
default:"false"
Force re-collection of experiments instead of loading from cache.

Examples

Show all experiments

Output:

Show only changed values

Output:
The epochs column is hidden because all experiments used the same value.

Sort by metric

Output:
Sorting by metrics helps quickly identify the best performing experiments.

Filter columns with regex

Output:

Export to CSV

Output (in experiments.csv):
CSV output is useful for importing results into spreadsheets or data analysis tools.

Export to JSON

JSON output works great with tools like jq for programmatic filtering and analysis.

Show experiments from multiple branches

Show last 10 commits with experiments

Format for documentation

Output:

Understanding the Output

Experiment Tree Structure

Experiments are shown in a tree structure:
  • Bold rows indicate baseline commits (Git commits)
  • └── and ├── symbols show experiment hierarchy
  • workspace shows current uncommitted changes

Column Types

Columns are color-coded by type:
  • Experiment info (grey background): Experiment name, creation date, state
  • Metrics (orange background): Performance metrics from your model
  • Parameters (cyan background): Hyperparameters and configuration
  • Dependencies (purple background): Input data checksums
Failed experiments show ! in the State column. Use --hide-failed to exclude them.

Common Workflows

Find best experiment

Compare specific parameters

Generate report for stakeholders

  • dvc exp run - Create new experiments
  • dvc exp diff - Compare two specific experiments
  • dvc exp apply - Apply experiment to workspace
  • dvc metrics show - View metrics without experiment context