Skip to main content

A OpenAI Gym Env for discrete

Project description

Gym-style API

The domanin 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 all patients;
  • predict risk of admission \rho, using initialized parameters
  • sample an action (50 possible values between -2 and 2)
  • if risk > 0.2:
    • replace Xa by g, where g(\rho, Xa) is obtained using the patient's risk and Xa value
  • else:
    • do not intervene, X_a stays the same
  • give reward equal to average risk of admission, using predicted Y, initial parameters and sampled values

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_discrete-1.5.6.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

gym_discrete-1.5.6-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file gym_discrete-1.5.6.tar.gz.

File metadata

  • Download URL: gym_discrete-1.5.6.tar.gz
  • Upload date:
  • Size: 4.9 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_discrete-1.5.6.tar.gz
Algorithm Hash digest
SHA256 ecbceba5b5c37eb31d72b60261bc6ab4523dd563a3522b57f003f668e6d55d5d
MD5 955e6d8e487ad90ff5b3cbe3676585e4
BLAKE2b-256 73450d3abf89b2522e1266da6048491349b8a0714b88b6755605383dc18b8e6e

See more details on using hashes here.

File details

Details for the file gym_discrete-1.5.6-py3-none-any.whl.

File metadata

  • Download URL: gym_discrete-1.5.6-py3-none-any.whl
  • Upload date:
  • Size: 5.5 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_discrete-1.5.6-py3-none-any.whl
Algorithm Hash digest
SHA256 b46cff2b2388a2c7b34676fcd0dd4ef1afa3b3f30b01e727fd66cf5ca3ad95b7
MD5 db79c72285c6f1bdd98c2e035a5dcc1b
BLAKE2b-256 98e18ac7d557c17cd0b736ff3781db32df656e7284a73bee7eef5f859537dd3e

See more details on using hashes here.

Supported by

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