dlboard

dlboard official documentation

View on GitHub

Runs, pins and comparisons

Every page of a project has a list of runs in its sidebar: an experiment’s runs, the runs of a comparison, or the project’s pinned runs. They work the same way on all three, so what you learn on one is what you do on the others.

The run list

Pins

A pin flags a run, and says who flagged it. It is project-wide: everyone who can see the run sees its pins. A run can be pinned the moment it exists, whether or not it has logged anything yet, and by the script that launches it (DLBoardLogger(..., pin=PinColor.RED), see client.md).

A comparison of a learning-rate sweep and the baseline experiment, with each run's pins in the sidebar

Tags

A tag is a label the project shares: baseline, ablation/lr, sweep-3. Where a pin says who flagged a run, a tag says what the run is, so it has no owner and no colour. Everyone who can see the run sees its tags, and an editor of the project puts them on and takes them off.

The run list with each run's tags after its name, one more run selected and being tagged from the bar's box

Comparisons

A comparison is a page of charts, like an experiment’s, over a list of runs you chose from any experiments of a project. It belongs to whoever made it, and can be shared with the project. A project’s comparisons are cards on its page, a page of them at a time with a filter by name, as its experiments are.

A comparison holds at most DLBOARD_MAX_COMPARISON_RUNS runs (100 by default), however it was filled: starting or adding to one that would hold more is refused, with how many fit. A run that was deleted still counts until it is purged. Its list starts with the columns of the experiment it was started from (hyperparameters, and the latest value of each metric), since across experiments the config is often what tells two runs of the same name apart. Its Columns picker, the same as an experiment’s, chooses others from the hyperparameters of its runs and the metrics of their experiments, and Apply saves them in the comparison (in a copy of your own, if it is not yours).

What a comparison costs

A comparison reads each experiment it draws from separately, on the same indexes as an experiment page, so what it reads is that of the runs it holds and not of how much else the project has logged. It does read each experiment on its own, though: a comparison of runs from 30 experiments makes about 30 times the reads of one experiment’s page for the same charts (measured on Postgres with 100 runs and six line charts: 13 queries and a third of a second in one experiment, 391 queries and under three seconds across 30). Keep a comparison to the few experiments you are really comparing. The columns a key picker offers are kept per experiment until it changes, so searching them costs a lookup of each experiment rather than a listing of its keys.

The metrics that suggested charts and auto-populate offer are those the experiments of a comparison’s runs logged, not only the comparison’s own runs, so a comparison of one run of a big sweep is offered charts of keys that run never logged, and they draw empty.

A comparison page works as an experiment’s does with what is logged: its charts follow it live (the poll watches every experiment the comparison draws runs of), and Diff compares its runs whatever experiments they are of, named “experiment / run” as in its charts.