Comparing Experiments¶
The ClearML Web UI provides a deep experiment comparison, allowing you to locate, visualize, and analyze differences including:
Source code - Repository, branch, commit ID, script, and working directory.
Artifacts - Input model, output model, and model design.
Hyperparameters - Side by side values comparison, and hyperparameter parallel coordinate comparison.
Scalars - Compare specific values, and plots of scalar series.
Plots - Compare plots of any series data.
Debug samples - Compare debug samples by each iteration. Examine samples with a viewer (for images and video), and a player (for audio).
The ClearML experiment comparison provides comparison features making it easy to compare experiments.
Selecting experiments to compare¶
To select experiments to compare:
Select the experiments using multi-select, select the checkboxes individually, select the top checkbox for all experiments. After selecting the second checkbox, the bottom bar appears.
In the bottom bar, click COMPARE. The comparison page appears, showing a column for each experiment and differences with a highlighted background color. The experiment on the left is the base experiment. Other experiments compare to the base experiment.
Source code and artifacts differences¶
Source code and artifact differences appear in the DETAILS tab. These are deep comparisons and include:
Source code
The repository, branch, commit ID, script file name, and working directory.
Installed packages and versions, sorted by package name.
Uncommitted changes, sorted by file name.
Artifacts
Input model and model design.
Output model and model design.
Other artifacts, if any.
To locate the source differences:
Click the DETAILS tab > Expand highlighted sections, or in the header, click (Previous diff) or (Next diff).
For example, in the image below, expanding ARTIFACTS > Output Model > Model, and EXECUTION > Uncommitted Changes shows the model ClearML model ID and name are different, and the location of the uncommitted change differences.
Hyperparameters¶
Compare hyperparameters as values, or compare by metric (hyperparameter parallel coordinate comparison).
Side by side values comparison¶
The comparison shows hyperparameter value differences highlighted line-by-line.
To view a side by side values comparison:
Click the HYPER PARAMETERS tab.
In the list (upper right), choose Values.
You can move the Hide Identical Fields slider to on, and show only differences.
Locate differences by either:
Clicking (Previous diff) or (Next diff).
Scrolling to see highlighted hyperparameters.
For example, by expanding General shows the batch_size
and epochs
different between the experiments.
Compare by metric¶
Compare a metric to any combination of hyperparameters using a parallel coordinates plot.
To compare by metric:
Click the HYPER PARAMETERS tab.
In the list (upper right), choose Parallel Coordinates.
In Performance metrics, expand a metric or monitored resource, and then click a variant.
Select the metric values to use. Choose one of the following:
LAST - The final value, or the most recent value, for in-progress experiments.
MIN - Minimal value.
MAX - Maximal value.
In Parameters, and then select all hyperparameter checkboxes to compare.
To view one experiment on the plot, hover over the experiment name in the legend.
For example, plot the metric/variant epoch_accuracy
/validation: epoch_accuracy
plotted against the hyperparameters batch_size
and epochs
.
Hover over one of the experiment names in the legend, and the plot shows only that data.
Scalars¶
Visualize the comparison of scalars which includes metrics and monitored resources in the SCALARS tab.
Compare specific values¶
To compare specific values:
Click the SCALARS tab.
In the list (upper right), choose either:
Last values (the final or most recent value)
Min Values (the minimal values)
Max Values (the maximal values)
Sort by variant.
Compare scalar series¶
Compare scalar series in plots and analyze differences using ClearML Web UI plot tools.
To compare scalar series:
Click the SCALARS tab.
In the list (upper right), Graph.
To improve scalar series analysis:
Group scalars by metric (all variants for a metric on the same plot) or metric-variant combination (individual metric-variant plots). - In Group by, select Metric or Metric+Variant.
Horizontal axis options - Iterations, relative time since the experiment began, wall (clock time). Click , and then click an option.
Smooth a curve - Click , and move the Smoothing slider or type a smoothing number from 0 to 0.999.
Use plot controls, which appear when you hover over the top of a plot.
Hide / show scalar plots - Click Hide all and .
Filter scalars by full or partial scalar name.
This image shows scalars grouped by metric.
This image shows scalars grouped by metric and variant.
Plots¶
Visualize the comparison of any data ClearML automatically captures, and which you explicitly report in your experiments, in the PLOTS tab.
To compare plots:
Click the PLOTS tab.
To improve your comparison, use either of the following:
To locate scalars, you can click HIDE ALL , and then (show) for those you want to see. You can also filter scalars by full or partial scalar name.
Use any of the plot controls which appear when you hover over the top of a plot, including downloading the image, downloading the data as JSON, zoom, pan, and logarithmic scale.
Debug samples¶
Compare debug samples at any iteration to verify your experiment is running as expected. The most recent iteration appears first. Use the viewer / player to inspect images, audio, video samples and do any of the following:
Move to the same sample in a different iteration (move the iteration slider).
Show the next or previous iteration’s sample.
Download the file ().
Zoom.
View the sample’s iteration number, width, height, and coordinates.
To compare debug samples:
Click the DEBUG SAMPLES tab. The most recent iteration appears at the top.
Locate debug samples by doing the following:
Filter by metric. In the Metric list, choose a metric.
Show other iterations. Click
(Older images),
(New images), or
(Newest images).
To open a debug sample (image, audio, or video) in the viewer or player, click the thumbnail.
To move to the same sample in another iteration, click < (previous), > (next), or move the slider.
To view a debug sample in the viewer / player:
Click the debug sample click the thumbnail.
Do any of the following:
Move to the same sample in another iteration - Move the slider, or click < (previous) or > (next).
Download the file - Click .
Zoom
For images, locate a position on the sample - Hover over the sample and the X, Y coordinates appear in the legend below the sample.
Comparison features¶
To assist you in your analysis, the comparison page supports:
Adding experiments to the comparison using a partial name search.
Find the next or previous difference.
Dynamic ordering of the compared experiments
Auto refresh
Adding experiments to the comparison¶
Add an experiment to the comparison - Click Add Experiment and start typing an experiment name. An experiment search and select dialog appears showing matching experiments to choose from. To add an experiment, click +. To Remove an experiment, click .
Choosing a different base experiment¶
Set a new base experiment. Show differences in other experiments to the new base.