End-to-end example
Core primitives
Datasetstores rows and backend version metadata.@ze.task(...)defines the outputs generated for each row.run = dataset.eval(...)executes the task and returns anEvalobject.run.score(...)applies evaluation functions and writes aggregate metrics intorun.metrics.
Inspect the returned run
What happened
1
Dataset rows were persisted
dataset.push() stores the dataset and returns backend-linked metadata.2
Task outputs were generated
dataset.eval(...) executed solve over each row with the requested worker
count and returned a run object (Eval).3
Runtime signals were captured
ze.emit_signal(...) attached execution facts to the task trace so they can
be inspected later without turning them into scores immediately.4
Evaluations produced scores
Row-level
exact_match values were added to rows, then accuracy was
aggregated into run.metrics.One mental model for scoring
- A row evaluation receives one row plus any mapped scalar values.
- A column evaluation receives lists of values across all rows.
- A run evaluation receives
all_runsafter you repeat a run.