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.4.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.4.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gym_contin-1.4.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.4.0.tar.gz
Algorithm Hash digest
SHA256 de6071bc0ce08a3679eb7b7f075d340fba6a142316bb705d9ba9b9f46fe5657c
MD5 70e81f9edb3bb1feedfd920dddc270f8
BLAKE2b-256 59502e584642ac88ce3a14bb75a97c4391ee6301e2a9905aa47933b7a5f281d2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gym_contin-1.4.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.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4dc0404d79da81f79dc6c4960fd1a91f7733378eae98973261c9541388d1f976
MD5 9a29e2aae50965ffff854fc0b76d8120
BLAKE2b-256 14e543fc1a22e7fbe81b219e10529458bbe5606c5cbb768e1a76a69b78293b3a

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