Links

Observation List

https://api.sigopt.com/v1/experiments/EXPERIMENT_ID/observations
Retrieves a Pagination of all Observation objects for this experiment. Observations are sorted in by IDs in descending order (so the newest observations are first).
Request Method: GET

Parameters

Name
Type
Required?
Description
after
string
N
Optional. Returns items with ids after after.
before
string
N
Optional. Returns items with ids before before.
limit
int
N
Optional. Limit the number of items returned. The maximum value is 100

Response

Pagination object.

Examples

Basic Observation List Request

Python
Bash
Java
observations = conn.experiments(EXPERIMENT_ID).observations().fetch()
OBSERVATIONS=`curl -s -X GET https://api.sigopt.com/v1/experiments/EXPERIMENT_ID/observations -u "$SIGOPT_API_TOKEN":`
Pagination<Observation> observations = new Experiment(EXPERIMENT_ID).observations().list().call();
Response

Observation List Request with Limit

Python
Bash
Java
observations = conn.experiments(EXPERIMENT_ID).observations().fetch(
limit=1
)
OBSERVATIONS=`curl -s -X -G GET https://api.sigopt.com/v1/experiments/EXPERIMENT_ID/observations -u "$SIGOPT_API_TOKEN": -d limit=1`
Pagination<Observation> observations = new Experiment(EXPERIMENT_ID).observations().list()
.addParam("limit", 1)
.call();
Response