Skip to main content

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

Release files for gym-contin 1.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gym-contin 1.5.0
File Size Uploaded
gym_contin-1.5.0.tar.gz 4.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gym-contin 1.5.0
File Interpreter ABI Platform
gym_contin-1.5.0-py3-none-any.whl Python 3 none any Details

Total release size: 9.7 kB

Release files / gym_contin-1.5.0.tar.gz

Download URL gym_contin-1.5.0.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
5c4426217433fef3a33a1bd04f38a0d459f01f875eabb7e5c49e45fa6ae84fcd
BLAKE2b-256 checksum
How to use checksums
dbf94e01859a5d158f2bd94de2dcedecf801aa7095d8af2494179fca39fc5ee1
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / gym_contin-1.5.0-py3-none-any.whl

Download URL gym_contin-1.5.0-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e6c1a85e9d96482b090180ce401ddca32ef92eb38d75322337bdde901247f41c
BLAKE2b-256 checksum
How to use checksums
3b43b3fb75f5675242483636835a2f9b0b06fa194e3ac625ca2c246689d05e27
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

1.5.0 This release

2 release files

1.4.0

2 release files

1.3.9

2 release files

1.3.8

2 release files

1.3.7

2 release files

1.3.6

2 release files

1.3.5

2 release files

1.3.4

2 release files

1.3.3

2 release files

1.3.1

2 release files

1.3.0

2 release files

1.2.9

2 release files

1.2.8

2 release files

1.2.7

2 release files

1.2.6

2 release files

1.2.5

2 release files

1.2.4

2 release files

1.2.3

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.9

2 release files

1.1.7

2 release files

1.1.6

2 release files

1.1.5

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.9

2 release files

1.0.8

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page