Module Openai_gym.Gym_client
val env_create : string -> Gym_t.instance_idenv_create env_idcreates an instance of the specified environment (e.g.,"CartPole-v0"). It returns the instance identifier.
val env_list_all : unit -> (Gym_t.instance_id * string) listenv_list_all ()lists all the environments running on the server as a pair(instance_id, env_id)(e.g.[("3c657dbc", "CartPole-v0")]).
val env_reset : Gym_t.instance_id -> Gym_t.observationenv_reset instance_idresets the state of the environment and return an initial observation.
val env_step : Gym_t.instance_id -> Gym_t.action -> bool -> Gym_t.step_responseenv_step instance_id action rendersteps though an environment using an action. Ifrenderis true, a graphical feedback if display by the server.
val env_action_space_info : Gym_t.instance_id -> Gym_t.action_space_infoenv_action_space_info instance_idgets information (name and dimensions/bounds) of the env's action_space.
val env_action_space_sample : Gym_t.instance_id -> Gym_t.actionenv_action_space_sample instance_idsamples randomly from the env's action_space.
val env_action_space_contains : Gym_t.instance_id -> int -> boolenv_action_space_contains instance_id xchecks to see if the valuexis valid in the env's action_space.
val env_observation_space_info : Gym_t.instance_id -> Gym_t.observation_space_infoenv_observation_space_info instance_idgets information (name and dimensions/bounds) of the env's observation_space.
val env_observation_space_contains : Gym_t.instance_id -> Json_t.json -> boolenv_observation_space_contains instance_id paramsassesses that the parameters are members of the env's observation_space.
val env_monitor_start : Gym_t.instance_id -> string -> bool -> bool -> unitenv_monitor_start instance_id directory force resumestarts monitoring.forceclears out existing training data from this directory (by deleting every file prefixed withopenaigym.).resumeretains the training data already in this directory, which will be merged with our new data.
val env_monitor_close : Gym_t.instance_id -> unitenv_monitor_close instance_idflushes all monitor data to disk.
val env_close : Gym_t.instance_id -> unitenv_close instance_idstops the environment.