Links

Observation Batch Create

https://api.sigopt.com/v1/experiments/EXPERIMENT_ID/observations/batch
Creates multiple Observations. Matches the Observation Create endpoint.
Request Method: POST

Parameters

Name
Type
Required?
Description
observations
N
An array of Observation objects.

Response

Pagination object.

Example Request

Python
observations = conn.experiments(EXPERIMENT_ID).observations().create_batch(
observations=[
dict(
suggestion="1",
values=[
dict(
name="Accuracy",
value=1
)
]
),
dict(
suggestion="2",
values=[
dict(
name="Accuracy",
value=1,
value_std=0.1
)
],
metadata=dict(
estimated_training_time_s=302
),
),
dict(
suggestion="3",
failed=True,
)
]
)
Response