Git Product home page Git Product logo

cyborg-competitive's Introduction

This repository contains the source code used for the thesis: Competitive Reinforcement Learning for Autonomous Cyber Operations.

The CybORG directory is taken from the CAGE Challenge 2 CybORG repository, which can be found at: https://github.com/cage-challenge. The EnvionmentController.py and Results.py files have been modified to accept both Red and Blue agent actions simultaneously, and return observations for both agents. The installation instructions included in the CAGE Challenge release are still required.

The environments.py file includes new environments that are used to train Blue and Red agent policies using RLLib's PPO algorithm: https://docs.ray.io/en/latest/rllib/index.html. It also includes the functions used to create new learning agents, and produce sample games between trained agents.

wrapper.py includes a new competitive wrapper, which is based on the Blue Table Wrapper that was included in the CAGE Challenge release. This competitive wrapper incorporates new observation vectors for both agents that are unique for the thesis scenario, and includes new methods to resolve each agents discrete action selection. This thesis scenario, which is discussed in the main document, is defined in the scenario.yaml file.

The fictitious play loop that is used to train the competitive policies takes place in the experiment.ipynb notebook. This is also where the exploitability of each agent is measured, relative to the other agents in their policy pool. All policies produced during the experiment are saved in the policies directory. The different pools in this directory each correspond to a training environment from environments.py, and are all used for the experiment as described in the thesis document.

The validation.ipynb notebook is used to train the dedicated opponents that confirm the minmax scores of the trained competitive agents. Finally, the score_martix.ipynb notebook is used to examine the average scores for games played by the various combinations of trained agents.

cyborg-competitive's People

Contributors

garrettmcdonald avatar rafvasq 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.