Coder Social home page Coder Social logo

yyystg / alwayssafe Goto Github PK

View Code? Open in Web Editor NEW

This project forked from algtudelft/alwayssafe

0.0 0.0 0.0 21 KB

Code for the paper "AlwaysSafe: Reinforcement Learning Without Safety Constraint Violations During Training"

Home Page: https://tdsimao.github.io/publications/Simao2021alwayssafe/

License: MIT License

Python 100.00%

alwayssafe's Introduction

AlwaysSafe

Code for the paper "AlwaysSafe: Reinforcement Learning Without Safety Constraint Violations During Training"Thiago D. Simão, Nils Jansen and Matthijs T. J. Spaan, published at AAMAS 2021.

[Details]

modules

  • agents: model based RL agents that interact with the environment.
  • planners: the planners used by the RL agents to compute the policy in each episode.
  • scripts: each file is related to one of the experiments from the paper.
  • tests: mostly unittest scripts.
  • util: contains common scripts to train an RL agent and evaluate a policy.

lp solver

By default, the code uses gurobipy if found, otherwise it uses cvxpy.

usage

  1. install dependencies
    pipenv install
    
  2. run tests
    pipenv run python -m unittest
  3. reproduce the experiments
    pipenv run python -m scripts.simple
    pipenv run python -m scripts.factored
    pipenv run python -m scripts.cliff_walking

citing

@inproceedings{Simao2021alwayssafe,
  author    = {Sim{\~a}o, Thiago D. and Jansen, Nils and Spaan, Matthijs T. J.},
  title     = {AlwaysSafe: Reinforcement Learning Without Safety Constraint Violations During Training},
  year      = {2021},
  booktitle = {Proceedings of the 20th International Conference on Autonomous Agents and MultiAgent Systems (AAMAS)},
  publisher = {IFAAMAS},
  pages     = {1226–1235},
}

alwayssafe's People

Contributors

tdsimao 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.