optimization-dev / backend /contract /gradient_descent_quadratic.json
nhamid289's picture
Deploy optimisation from main (6727a1a)
c964813 verified
Raw History Blame Contribute Delete
576 Bytes
{
"description": "Gradient descent on x^2 from x = 1 with learning rate 0.25 halves x each iteration",
"calls": {
"handle_set_function": { "args": { "variables": 1, "expression": "x^2" }, "result": null },
"handle_set_runs": { "args": { "runs": [{ "algorithm": "gradient_descent", "start": [1.0], "params": { "learning_rate": 0.25 } }] }, "result": null },
"handle_state": {
"args": { "iteration": 2 },
"result": { "runs": [{ "point": { "position": [0.25], "value": 0.0625, "gradient": [0.5], "hessian": [[2.0]] }, "stopped": null }] }
}
}
}