Skip to main content

End-to-end example

Core primitives

  • Dataset stores rows and backend version metadata.
  • @ze.task(...) defines the outputs generated for each row.
  • run = dataset.eval(...) executes the task and returns an Eval object.
  • run.score(...) applies evaluation functions and writes aggregate metrics into run.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_runs after you repeat a run.