Coder Social home page Coder Social logo

comms_rl's Introduction

Overview

This Open-AI Gym compliant environment simulates a OFDM resource allocation task, where a limited number of frequency resources are to be allocated to a large number of User Equipments (UEs) over time. An agent interacting with this Reinforcement Learning (RL) environment plays the role of the MAC scheduler. On each time step, the agent must allocate one frequency resource to one of a large number of UEs. The agent gets rewarded for these resource allocation decisions. The reward increases with the number of UEs, whose traffic requirements are satisfied. The traffic requirements for each UE are expressed in terms of their Guaranteed Bit Rate (if any) and their Packet Delay Budget (PDP).

Challenge

You are invited to develop a new agent that interacts with this environment and takes effective resource allocation decisions. Such agent must use a Reinforcement Learning algorithm and improve its performance through interaction with the environment. Four sample agents are provided for reference in the comms_rl/agents folder: -Random agent -Round Robin agent -Round Robin IfTraffic agent -Proportional Fair agent

Evaluation

The script scripts/launch_agent.py runs 16 episodes with a maximum of 65536 time steps each, and collects the reward obtained by the agent on each time step. The result is calculated as the average reward obtained in all time steps on all episodes. The performance obtained by the default agents on the default environment configuration is:

Random -69590 Round Robin -69638 Round Robin IfTraffic -3284 Proportional Fair -9595

Note that the above average rewards are negative values. The best performing agent is thus the Round Robin IfTraffic.

How to run it

The script scripts/launch_agent.py is used to run the interaction between the agent and the environment for a customizable number of episodes. The code has been tested to work on Python 3.7 under Windows 10.

References

  1. Open AI Gym Documentation
  2. How to create new environments for Gym
  3. Sacred Documentation

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.