Skip to main content

A framework to research MARL agents in various setings.

Project description

EDYS

Tackling emergent dysfunctions (EDYs) in cooperation with Fraunhofer-IKS

Setup

  1. Make sure to install virtualenv using pip install virtualenv
  2. Create a new virtual environment virtualenv venv
  3. Activate the virtual environment source venv/bin/activate
  4. Install the required dependencies pip install -r requirements.txt

First Steps

Quickstart

Most of the env. objects (entites, rules and assets) can be loaded automatically. Just define what your environment needs in a yaml-configfile like:

Example ConfigFile General: level_name: rooms env_seed: 69 verbose: !!bool False pomdp_r: 5 individual_rewards: !!bool True
Entities:
    Defaults: {}
    Doors:
        closed_on_init: True
        auto_close_interval: 10
        indicate_area: False
    Destinations: {}

Agents:
    Wolfgang:
        Actions:
            - Move8
            - Noop
            - DoorUse
            - ItemAction
        Observations:
            - All
            - Placeholder
            - Walls
            - Items
            - Placeholder
            - Doors
            - Doors
    Armin:
        Actions:
            - Move4
            - ItemAction
            - DoorUse
        Observations:
            - Combined:
                - Agent['Wolfgang']
                - Walls
                - Doors
                - Items
Rules:
    Defaults: {}
    Collision:
        done_at_collisions: !!bool True
    ItemRespawn:
        spawn_freq: 5
    DoorAutoClose: {}

Assets:
- Defaults
- Items
- Doors

Have a look in \quickstart for further configuration examples.

Make it your own

Levels

Varying levels are created by defining Walls, Floor or Doors in .txt-files (see ./environment/levels for examples). Define which level to use in your configfile as:

General:
    level_name: rooms    

... or create your own , maybe witht he help of asciiflow.com.

Entites

TODO

Rules

TODO

  • Results

Assets

TODO

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

Marl-Factory-Grid-0.0.1.tar.gz (61.8 kB view details)

Uploaded Source

Built Distribution

Marl_Factory_Grid-0.0.1-py3-none-any.whl (97.6 kB view details)

Uploaded Python 3

File details

Details for the file Marl-Factory-Grid-0.0.1.tar.gz.

File metadata

  • Download URL: Marl-Factory-Grid-0.0.1.tar.gz
  • Upload date:
  • Size: 61.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.6

File hashes

Hashes for Marl-Factory-Grid-0.0.1.tar.gz
Algorithm Hash digest
SHA256 73bf774a84a368ad217580c8042235c2483d38cf28ebacc771d98a241f609e45
MD5 414e4272d1b445adac06824c4910b20d
BLAKE2b-256 6ffb1be2f49352915f050b48b68ecfbee86e234e3cd95c25f825f5aa7e3fe0ac

See more details on using hashes here.

File details

Details for the file Marl_Factory_Grid-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for Marl_Factory_Grid-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 31a0510aa14589806ce756bb34b591c88f48aa5eeaa297eda193c741bfb8ca01
MD5 b5ee8ef2df54ebe7c6e6d87c6ad5e78d
BLAKE2b-256 4053f799b5069f3bc6200044f58219f470d964cbad0aa1d55af2518c3dd06782

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