GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - milosen/ctrpo: Official implementation of C-TRPO

BranchesTags
Open more actions menu

Latest commit

 

History

11 Commits
11 Commits

Folders and files

NameName
Last commit message
Last commit date
algorithms
algorithms
 
 
data/runs
data/runs
 
 
plots
plots
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
c-npg.jl
c-npg.jl
 
 
requirements.txt
requirements.txt
 
 

Repository files navigation

Geometric Methods for Constrained Reinforcement Learning

This repository contains the code for the paper Embedding Safety into RL: A New Take on Trust Region Methods.

It implements the algorithms C-NPG and C-TRPO and contains code to reproduce the benchmarking experiments from the paper.

Setup

For the computational experiments:

conda create -n ctrpo python=3.9
pip install -r requirements.txt

Reproduce

python algorithms/c-trpo.py --task SafetyAntVelocity-v1

Draw plots

To draw plots, run the respective notebook, e.g. plots/plots_benchmark.ipynb for the benchmark plots. By default, the data loading functions in plots/helpers.py will load data from data/runs, which we provide in case you don't have the resources or the time to re-run the whole benchmark.

Finally, for the C-NPG example you'll need julia. Once you have the julia binary, run the following in the terminal:

julia c-npg.jl

Acknowledgements

The code in this repo is adapted from SafePO.

About

Official implementation of C-TRPO

Topics

information-georeinforcement-learningrlsafe-rsafe-rl

Resources

Readme
Activity

Stars

4 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.