Run Class
Run object for tracking experiments.
dalva.Run
Run(
project: str,
name: str | None = None,
config: dict | None = None,
resume: str | None = None,
server_url: str = "http://localhost:8000",
)
Run object for tracking experiments via HTTP.
All operations are performed via HTTP requests to the server. No local database operations are performed.
Example
Initialize a run by creating it on the server.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
project
|
str
|
Project name |
required |
name
|
str | None
|
Optional run name (user-defined, for display only) |
None
|
config
|
dict | None
|
Optional configuration dictionary |
None
|
resume
|
str | None
|
run_id to resume (omit to create a new run) |
None
|
server_url
|
str
|
Server URL. Defaults to http://localhost:8000 |
'http://localhost:8000'
|
Source code in backend/src/dalva/run.py
log
Log metrics to the run.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
metrics
|
dict[str, Any]
|
Dictionary of metric name -> value |
required |
step
|
int | None
|
Optional step number for series values |
None
|
Example
Source code in backend/src/dalva/run.py
finish
Finish the run and mark it as completed.