Skip to main content

MTEnv: Environment interface for mulit-task reinforcement learning

Project description

MTEnv

Documentation

How to add new environments

There are two workflows:

  • The user have a standard gym environment, which they want to convert into a multitask environment. E.g.: examples/bandit.py has a BanditEnv which is a standard multi-arm bandit, without any explicit notion of task. The user has the following options:

    • Write a new subclass, say MTBanditEnv (which subclasses MTEnv) as shown in examples/mtenv_bandit.py.

    • Use the MTEnvWrapper and wrap the existing standard model class. An example is shown in examples/wrapped_bandit.py.

  • If the user does not have a standard gym environment to start with, it is recommended that they directly extend the MTEnv class.

Running examples

  • pip install -r requirements.txt
  • Alternatively, feel free to use my conda env: source activate source /private/home/sodhani/.conda/envs/mtenv/bin/activate /private/home/sodhani/.conda/envs/mtenv
  • In the root folder, run PYTHONPATH=. python examples/<filename>.py.

Pending items

  1. Google Doc to track some ongoing work.

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

mtenv-0.1.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

mtenv-0.1-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file mtenv-0.1.tar.gz.

File metadata

  • Download URL: mtenv-0.1.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.6.0.post20201009 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6

File hashes

Hashes for mtenv-0.1.tar.gz
Algorithm Hash digest
SHA256 8262e4aa6cc96f997fbd6380faac8f8ac7dedea60b76b68443bb1f80837624b9
MD5 3daa4b7fe8863adc1c556a415e505aba
BLAKE2b-256 b8f68c90a683ded90b731789579b317f7f13c72887f56932506a6fb01d074de3

See more details on using hashes here.

File details

Details for the file mtenv-0.1-py3-none-any.whl.

File metadata

  • Download URL: mtenv-0.1-py3-none-any.whl
  • Upload date:
  • Size: 9.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.6.0.post20201009 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6

File hashes

Hashes for mtenv-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5c7ac369d5f5e6b2478e37665d2a79b0fe0ea65f4d3d74058609a39bc68a1410
MD5 c5a250d049014443b43ab8fb2251327b
BLAKE2b-256 7c33f6735675c25e0121ff16f4338fcb4099b52617fbcc3b7db5e4781323fe82

See more details on using hashes here.

Supported by

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