HTTP Adapter for gym, GAC²E and AC²E.
$ pip install git+https://github.com/augustunderground/hym.git
$ gym-http --host <host address> --port <port> \
--env <gace id> --var <gace variant> --num <num envs>
Reset:
$ curl -X GET <host>:<port>/<env_id>-v<variant>/reset
Step from file:
$ curl -d '@examples/gym-action.json' -H "Content-Type: application/json" \
-X POST <host>:<port>/<env_id>-v<variant>/step
Action Space:
$ curl -X GET <host>:<port>/<env_id>-v<variant>/action_space
Observation Space:
$ curl -X GET <host>:<port>/<env_id>-v<variant>/observation_space
Random Action:
$ curl -X GET <host>:<port>/<env_id>-v<variant>/random_action
Take random step:
$ curl -X GET <host>:<port>/<env_id>-v<variant>/random_step
$ gace-http --host <host address> --port <port> \
--env <gace id> --pdk <ace backend> \
--var <gace variant> --num <num envs>
Reset:
$ curl -X GET <host>:<port>/gace:<ace id>-<ace backend>-v<gace variant>/reset
Step from file:
$ curl -d '@examples/gace-action.json' -H "Content-Type: application/json" \
-X POST <host>:<port>/gace:<ace id>-<ace backend>-v<gace variant>/step
Action Space:
$ curl -X GET <host>:<port>/gace:<ace id>-<ace backend>-v<gace variant>/action_space
Observation Space:
$ curl -X GET <host>:<port>/gace:<ace id>-<ace backend>-v<gace variant>/observation_space
Random Action:
$ curl -X GET <host>:<port>/gace:<ace id>-<ace backend>-v<gace variant>/random_action
Take random step:
$ curl -X GET <host>:<port>/gace:<ace id>-<ace backend>-v<gace variant>/random_step
View Target:
$ curl -X GET <host>:<port>/gace:<ace id>-<ace backend>-v<gace variant>/target
$ ace-http --host <host address> --port <port> --env <ace id> --pdk <pdk> \
--num <num envs>
From command:
$ curl -d '{"Wd":2e-6}' -H "Content-Type: application/json" \
-X POST <host>:<port>/<ace id>-<ace backend>/sim
From file:
$ curl -d '@sizing.json' -X POST <host>:<port>/<ace id>-<ace backend>/sim
Get last result without simulating:
$ curl -X GET <host>:<port>/<ace id>-<ace backend>/performance
Get current sizing
$ curl -X GET <host>:<port>/<ace id>-<ace backend>/sizing
Get Performance Parameters:
$ curl -X GET <host>:<port>/<ace id>-<ace backend>/p-params
Get Sizing Parameters:
$ curl -X GET <host>:<port>/<ace id>-<ace backend>/s-params
Get Initial Sizing:
$ curl -X GET <host>:<port>/<ace id>-<ace backend>/init
Get Random Sizing:
$ curl -X GET <host>:<port>/<ace id>-<ace backend>/rng