Giter VIP home page Giter VIP logo

dr_stabilizing_policy's Introduction

Distributionally Robust Lyapunov-stable Policy Learning

This repository contains implementations for the work "Distributionally Robust Policy and Lyapunov-Certificate Learning".

If you find our work useful, please consider citing our paper:

@article{long2024distributionally,
  title={Distributionally Robust Policy and {L}yapunov-Certificate Learning},
  author={Long, Kehan and Cortes, Jorge and Atanasov, Nikolay},
  journal={arXiv preprint arXiv:2404.03017},
  year={2024}
}

Clone Repo

git clone https://github.com/KehanLong/DR_Stabilizing_Policy

Dependencies

Install the required dependcies by using a anaconda virtual environment:

conda env create -f environment.yml

Activate the environment:

conda activate DR_Stabilizing_Policy

Finally, go to the project directory

cd DR_LF_Learning

Acknowledgments

This project uses a modified version of the Gymnasium library, which is an open-source library for developing and comparing reinforcement learning algorithms. We would like to acknowledge the original work by the Farama Foundation and the contributors of the Gymnasium repository. The original repository can be found at https://github.com/Farama-Foundation/Gymnasium.

The Gymnasium_modified directory in this project contains a few minor modifications to the system dynamics of the Mountain Car and Inverted Pendulum environments.

Training

To re-train the provided examples, simply run python Inverted_pendulum_learning.py or python mountain_car_learning.py

Pre-trained models are available in the saved_models/joint_clf_controller_models directory.

To visualize the performance of the learned controllers, refer to the files Inverted_pendulum_evaluate; Mountain_car_evaluate.

Visualization Results

The results of the learned DR Lyapunov-stable policy are demonstrated through the following GIFs:

Inverted Pendulum

Initial state 1

Baseline Distributionally Robust
Baseline Initial State 1 Distributionally Robust Initial State 1

Initial state 2

Baseline Distributionally Robust
Baseline Initial State 2 Distributionally Robust Initial State 2

Mountain Car

Baseline Distributionally Robust
Baseline Mountain Car Distributionally Robust Mountain Car

dr_stabilizing_policy's People

Contributors

kehanlong avatar

Stargazers

 avatar  avatar

Watchers

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