Giter Club home page Giter Club logo

rl-routing's Introduction

RL Routing Env

Open In Colab

RL-routing provides a bandit style environment for routing problems. The environment relies on an underlying networkx graph. This is passed to the environment during construction under the keyword argument graph.
It is recommended to set pos for the nodes to ensure consistent rendering. spring_layout provides a simple api to do this.

e.x.

G=nx.random_internet_as_graph(100)
pos = nx.spring_layout(G)
nx.set_node_attributes(G, pos, "pos")
env = NetworkEnv(graph=G)

The environment follows a simple set of rules:

  • reward is the number of packets to reach their destination during a setp
  • edges are treated as wires
  • one packet may occupy a wire per step

The environment renders to an rgb array. This allows it to be rendered to a matplotlib.pyplot plot, an output gif, or any other format desired. The visualization uses red to indicate that a node or edge is occupied by a packet, blue to show that an edge or node is vacant, or green to show that a packet was successfully routed.

Roadmap

  • implement preprocessing for multi-agent
  • notebook for simple bayesian model on tiny hand crafted network
  • implement preprocessing for SDN routing

Quickstart

The easiest way to get started using rl-routing is to open up the Shortest Path Base Case in Colab. This base case runs you through processing observations, setting up the environment, and creating a shortest path agent.

Citation

Please cite any usage of this repo in research.

bibtex entry:

@misc{lukewood_2020, 
  title={RL Routing},
  url={https://github.com/lukewood/rl-routing},
  publisher={Github},
  author={LukeWood},
  year={2020},
  month={Oct}
} 

rl-routing's People

Contributors

lukewood avatar

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.