https://api.sigopt.com/v1/experiments/EXPERIMENT_ID/suggestions/SUGGESTION_ID
Updates an existing Suggestion.
Request Method: PUT
Parameters
Name | Type | Required? | Description |
---|
| | | Optional user-provided object. See Using Metadata for more information. |
Response
Suggestion object.
Example Request
suggestion = conn.experiments(EXPERIMENT_ID).suggestions(SUGGESTION_ID).update(
metadata=dict(
host="127.0.0.1"
)
)
SUGGESTION=`curl -s -X PUT https://api.sigopt.com/v1/experiments/EXPERIMENT_ID/suggestions/SUGGESTION_ID -u "$SIGOPT_API_TOKEN": \
-H 'Content-Type: application/json' \
-d "{\"metadata\":{\"host\":\"127.0.0.1\"}}"`
Suggestion suggestion = new Experiment(EXPERIMENT_ID).suggestions(SUGGESTION_ID).update()
.data(
new Suggestion.Builder()
.metadata(new Metadata.Builder()
.set("host", "127.0.0.1")
.build())
.build()
)
.call();
Response
{
"assignments": {
"degree": 2,
"gamma": 3.6,
"kernel": "rbf"
},
"created": 1414800000,
"deleted": null,
"experiment": "1",
"id": "2",
"metadata": {
"host": "127.0.0.1"
},
"object": "suggestion",
"state": "open"
}