Skip to navigation

Stream a dataset's experiment items

View as Markdown

Stream the experiment items of every regular experiment on a dataset, one experiment item per line. Optimizer trial, mini-batch and mutation experiments are excluded.

Rows are ordered by experiment, then dataset item. To read the next page, send the id of the last row received as last_retrieved_id; a page with fewer rows than the limit is the last one. Optionally also send its experiment_id as last_retrieved_experiment_id: it is only used if that row was deleted, to resume from the start of its experiment instead of from the start of the stream.

Request

This endpoint expects an object.
dataset_idstringOptionalformat: "uuid"

Dataset ID. Set this or dataset_name

dataset_namestringOptionalformat: "(?s)^\s*(\S.*\S|\S)\s*$"

Dataset name. Set this or dataset_id

project_namestringOptionalformat: "(?s)^\s*(\S.*\S|\S)\s*$"

Project of the dataset, used with dataset_name

dataset_versionslist of stringsOptional

Dataset version hashes or tags, such as ‘latest’. Only experiments run against one of these versions are included; omit for every version. Returns 404 if any version does not exist

filtersstringOptional
JSON array of dataset item filters, evaluated against the newest version of each item that the experiments reference
limitintegerOptional1-2000Defaults to 2000
Maximum number of experiment items to return
last_retrieved_experiment_idstringOptionalformat: "uuid"

Optional hint: experiment_id of the last experiment item received. Used only if that item was deleted, to resume from the start of its experiment instead of from the start of the stream. Requires last_retrieved_id

last_retrieved_idstringOptionalformat: "uuid"
id of the last experiment item received
truncatebooleanOptionalDefaults to true
Truncate image included in either input, output or metadata

Response

Experiment items stream or error during process