Suggestion Create
https://api.sigopt.com/v1/experiments/EXPERIMENT_ID/suggestions
When you are ready to start working, create a Suggestion. The response object will contain the assignments that SigOpt recommends in order to optimize your metric.
Request Method: POST
Name | Type | Required? | Description |
---|---|---|---|
assignments | N | Allows you to specify the assignments of this suggestion. You must specify exactly one value for each parameter in the experiment. | |
metadata | N | Optional user-provided object. See Using Metadata for more information. |
Python
Bash
Java
suggestion = conn.experiments(EXPERIMENT_ID).suggestions().create()
SUGGESTION=`curl -s -X POST https://api.sigopt.com/v1/experiments/EXPERIMENT_ID/suggestions -u "$SIGOPT_API_TOKEN":`
Suggestion suggestion = new Experiment(EXPERIMENT_ID).suggestions().create().call();
Python
Bash
Java
suggestion = conn.experiments(EXPERIMENT_ID).suggestions().create(
assignments=dict(
degree=2,
gamma=3.6,
kernel="rbf"
)
)
SUGGESTION=`curl -s -X POST https://api.sigopt.com/v1/experiments/EXPERIMENT_ID/suggestions -u "$SIGOPT_API_TOKEN": \
-H 'Content-Type: application/json' \
-d "{\"assignments\":{\"degree\":2,\"gamma"\:3.6,\"kernel\":\"rbf\"}}"`
Suggestion suggestion = new Experiment(EXPERIMENT_ID).suggestions().create()
.data(
new Suggestion.Builder()
.assignments(new Assignments.Builder()
.set("degree", 2)
.set("gamma", 3.6)
.set("kernel", "rbf")
.build())
.build()
)
.call();
Last modified 1yr ago