GithubHelp home page GithubHelp logo

cemiu / inhibit-selfish-rl Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 36.96 MB

Approaches for inhibiting selfish behaviour of RL-based agents, in environments which encourage it. BSc CompSci dissertation.

License: GNU General Public License v3.0

Python 65.47% Jupyter Notebook 34.53%

inhibit-selfish-rl's Introduction

inhibit-selfish-rl

Studying and comparing approaches for inhibiting selfish behaviour of RL-based agents, in environments which encourage it.

This codebase was used for my final year dissertation, as part of my BSc CompSci degree in 2022/23.

Description

Four multi-agent environments are evaluated, where two agents with not-relating or opposing goals exist.

The optimal policy for agent A is not aligned with agent B's goals.

This project compares three approaches for inhibiting selfish behaviour:

  • Add B's reward function to A's reward function, with some multiplier
  • Devise custom, per-environment, heuristics for reducing selfish behaviour
  • Use Inverse Reinforcement Learning to approximate B's goals, then add them to A's reward function

More info

If you want to learn more, you can check out this poster, or presentation (Apple Keynotes), presentation (PDF, but without videos), or just read the unnecessarily long dissertation I wrote about it.

Setup

At the time of creation, these commands worked for setting up all dependencies. With SB3 moving to gymnasium & imitation planning to later do the same, this is unlikely to work anymore.

pip install opencv-python matplotlib pandas seaborn tensorboard numpy imitation jupyter pip install git+https://github.com/carlosluis/stable-baselines3@fix_tests

imitation=1.1.1

inhibit-selfish-rl's People

Contributors

cemiu avatar

Watchers

 avatar Kostas Georgiou 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.