Skip to main content

A OpenAI Gym Env for continuous actions

Project description

Gym-style API

The domain features a continuos state and a dicrete action space.

The environment initializes:

  • cross-sectional dataset with variables X_a, X_s, Y and N observations;
  • logit model fitted on the dataset, retrieving parameters \theta_0, \theta_1, \theta_2;

The agent:

  • sees a patient (sample observation);
  • predict his risk of admission \rho, using initialized parameters
  • if \rho < 1/2:
    • do not intervene on X_a, which stays the same
  • else:
    • sample an action a in [0,1]
    • compute g(a, X_a) = newX_a
    • intervene on X_a by updating it to newX_a
  • give reward equal to average risk of admission, using predicted Y, initial parameters and sampled values

(shouldn't I fit a new logit-link? parameters are now diff?)

To install

To change version

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gym_contin-1.5.0.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gym_contin-1.5.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file gym_contin-1.5.0.tar.gz.

File metadata

  • Download URL: gym_contin-1.5.0.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.6.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for gym_contin-1.5.0.tar.gz
Algorithm Hash digest
SHA256 5c4426217433fef3a33a1bd04f38a0d459f01f875eabb7e5c49e45fa6ae84fcd
MD5 45dda7da1e35b312671931e26cd0871e
BLAKE2b-256 dbf94e01859a5d158f2bd94de2dcedecf801aa7095d8af2494179fca39fc5ee1

See more details on using hashes here.

File details

Details for the file gym_contin-1.5.0-py3-none-any.whl.

File metadata

  • Download URL: gym_contin-1.5.0-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.6.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for gym_contin-1.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e6c1a85e9d96482b090180ce401ddca32ef92eb38d75322337bdde901247f41c
MD5 b2c561332cd00d4d666056dcf9a2c5ae
BLAKE2b-256 3b43b3fb75f5675242483636835a2f9b0b06fa194e3ac625ca2c246689d05e27

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page