API for managing subjective studies on Mabyduck.
API
//
List all experiments
Mabyduck API (0.7.5)
- https://api.mabyduck.com/projects/{project_id}/experiments/
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api.mabyduck.com/projects/{project_id}/experiments/' \
-H 'Authorization: Api-Key <YOUR_TOKEN_HERE>'Response
application/json
[ { "id": "string", "name": "string", "type": "string", "language": "en", "dataset_ids": [ … ], "job_ids": [ … ], "training_dataset_ids": [ … ], "date_created": "2019-08-24T14:15:22Z", "date_updated": "2019-08-24T14:15:22Z", "config": null } ]
- https://api.mabyduck.com/projects/{project_id}/experiments/
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://api.mabyduck.com/projects/{project_id}/experiments/' \
-H 'Authorization: Api-Key <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"name": "string",
"version": 0,
"datasets": [
0
],
"training_datasets": [
0
],
"config": null,
"language": "en"
}'Response
application/json
{ "id": "string", "name": "string", "type": "string", "language": "en", "dataset_ids": [ "string" ], "job_ids": [ "string" ], "training_dataset_ids": [ "string" ], "date_created": "2019-08-24T14:15:22Z", "date_updated": "2019-08-24T14:15:22Z", "config": null }
- https://api.mabyduck.com/projects/{project_id}/experiments/{experiment_id}/
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api.mabyduck.com/projects/{project_id}/experiments/{experiment_id}/' \
-H 'Authorization: Api-Key <YOUR_TOKEN_HERE>'Response
application/json
{ "id": "string", "name": "string", "type": "string", "language": "en", "datasets": [ { … } ], "jobs": [ { … } ], "training_datasets": [ { … } ], "date_created": "2019-08-24T14:15:22Z", "date_updated": "2019-08-24T14:15:22Z", "config": null }
- https://api.mabyduck.com/projects/{project_id}/experiments/{experiment_id}/jobs/
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api.mabyduck.com/projects/{project_id}/experiments/{experiment_id}/jobs/' \
-H 'Authorization: Api-Key <YOUR_TOKEN_HERE>'Response
application/json
[ { "id": "string", "experiment_id": "string", "num_sessions": 10000, "date_created": "2019-08-24T14:15:22Z", "date_updated": "2019-08-24T14:15:22Z", "date_launched": "2019-08-24T14:15:22Z", "pool": 0, "status": "string", "config": null } ]
Bodyrequired
- application/json
- application/x-www-form-urlencoded
- multipart/form-data
How often an individual rater is allowed to repeat the task.
How many minutes should pass before a rater can repeat the task.
randomized- randomizedactive- activeneighbour- neighbour
Default "randomized"
Enum"randomized""active""neighbour"
- https://api.mabyduck.com/projects/{project_id}/experiments/{experiment_id}/jobs/
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://api.mabyduck.com/projects/{project_id}/experiments/{experiment_id}/jobs/' \
-H 'Authorization: Api-Key <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"rater_pool": 0,
"num_sessions": 1,
"num_comparisons": 1,
"num_training": 2,
"max_repetitions": 2147483647,
"min_rest_time": 2147483647,
"strategy": "randomized",
"note": "string"
}'Response
application/json
{ "id": "string", "experiment_id": "string", "num_sessions": 10000, "date_created": "2019-08-24T14:15:22Z", "date_updated": "2019-08-24T14:15:22Z", "date_launched": "2019-08-24T14:15:22Z", "pool": 0, "status": "string", "config": null }
- https://api.mabyduck.com/projects/{project_id}/experiments/{experiment_id}/raters/
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api.mabyduck.com/projects/{project_id}/experiments/{experiment_id}/raters/' \
-H 'Authorization: Api-Key <YOUR_TOKEN_HERE>'Response
application/json
[ { "id": 0, "user": { … }, "meta": null } ]
- https://api.mabyduck.com/projects/{project_id}/experiments/{experiment_id}/ratings/
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api.mabyduck.com/projects/{project_id}/experiments/{experiment_id}/ratings/?training=false' \
-H 'Authorization: Api-Key <YOUR_TOKEN_HERE>'Response
application/json
[ { "score": 0, "rater_id": 0, "slate_id": 0, "session_id": "string", "job_id": "string", "stimulus_id": 0, "stimulus": "string", "dimension": "string", "is_training": true, "meta": null, "is_correct": true } ]
- https://api.mabyduck.com/projects/{project_id}/experiments/{experiment_id}/results/
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api.mabyduck.com/projects/{project_id}/experiments/{experiment_id}/results/?metric=bayesian_elo&source=string' \
-H 'Authorization: Api-Key <YOUR_TOKEN_HERE>'Response
application/json
[ { "kind": "bayesian_elo", "dimension": "string", "source": "string", "scores": [ … ], "options": { … } } ]
- https://api.mabyduck.com/projects/{project_id}/experiments/{experiment_id}/sessions/
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api.mabyduck.com/projects/{project_id}/experiments/{experiment_id}/sessions/?training=false' \
-H 'Authorization: Api-Key <YOUR_TOKEN_HERE>'Response
application/json
[ { "id": "string", "job_id": "string", "experiment_id": "string", "date_created": "2019-08-24T14:15:22Z", "date_updated": "2019-08-24T14:15:22Z", "date_completed": "2019-08-24T14:15:22Z", "meta": null, "rater": { … } } ]
- https://api.mabyduck.com/projects/{project_id}/experiments/{experiment_id}/slates/
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api.mabyduck.com/projects/{project_id}/experiments/{experiment_id}/slates/?training=false' \
-H 'Authorization: Api-Key <YOUR_TOKEN_HERE>'Bodyapplication/jsonArray [ ]
Checks if score is within expectation.
First checks for explicit correctness in meta['isCorrect']. Falls back to comparing score within bounds given in meta['expectedScores'] (inclusive).
Returns: True if score is correct, False if incorrect, or None if neither.
For example, the time it took to complete the slate.
One of:
For example, the time it took to complete the slate.
any
Response
application/json
[ { "id": 0, "rater_id": "string", "session_id": "string", "job_id": "string", "ratings": [ … ], "date_updated": "2019-08-24T14:15:22Z", "meta": {}, "is_training": true } ]