create_run

Create a new dbnl Run

dbnl.create_run(
    *,
    project: ,
    run_config: ,
    display_name: Optional[str] = None,
    metadata: Optional[Dict[str, str]] = None,
) -> :

Parameters

Arguments
Description

project

The dbnl Project that this Run will be associated with.

run_config

The dbnl RunConfig that this Run will be associated with. Two Runs with the same RunConfig can be compared in the web UI and associated in Tests. The associated RunConfig must be from the same Project.

display_name

An optional display name for the Run. Display names do not have to be unique.

metadata

Any additional key-value pairs information the user wants to track.

Returns

Type
Description

A new dbnl Run for reporting results.

Examples

import dbnl
dbnl.login()


proj1 = dbnl.get_or_create_project(name="test_p1")
runcfg1 = dbnl.create_run_config(project=proj1, columns=[{"name": "error", "type": "float"}])

run1 = dbnl.create_run(
    project=proj1, 
    run_config=runcfg1, 
    metadata={"mode": "dev"},
)

Last updated

Was this helpful?