Spaces:
Running
Running
Download backend/contract/gradient_descent_quadratic.json from nhamid289/optimization-dev: direct link, hf CLI and curl.
- Browser
- Download file 576 Bytes
-
https://huggingface.co/spaces/nhamid289/optimization-dev/resolve/main/backend/contract/gradient_descent_quadratic.json
- Command line
-
hf download hf://spaces/nhamid289/optimization-dev/backend/contract/gradient_descent_quadratic.json
-
curl -L -o gradient_descent_quadratic.json https://huggingface.co/spaces/nhamid289/optimization-dev/resolve/main/backend/contract/gradient_descent_quadratic.json
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 }] } | |
| } | |
| } | |
| } | |