Tags
Tags label runs, datasets and models. A tag belongs to a project, and a project has one tag of each name.
A tag can name the ticket a run serves, such as ENG-42. Then hlab run list --tag ENG-42 --json lists every run made for the ticket, each with its url to cite.
Create a tag
import hectiqlab as hl
hl.tags.create("baseline", color="#4f46e5")Without a color, the web app picks one. You rarely need to create a tag: tagging a run, a dataset or a model creates the missing ones.
List tags
tags = hl.tags.list().unwrap()Tag something
| To tag | Python | CLI |
|---|---|---|
| A run | hl.runs.tag("best", run=42) | hlab run tag 42 best |
| A dataset | hl.datasets.tag(id, "best") | hlab dataset tag interactions best |
| A model | hl.models.tag(id, "best") | hlab model tag two-tower best |
A run can also be tagged as it opens: hl.run("...", tags=["ENG-42"]).