Skip to content

Globally Safe Model-free Exploration of Dynamical Systems

Notifications You must be signed in to change notification settings

Takui9/gosafeopt

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tuning Legged Locomotion Controllers via Safe Bayesian Optimization

Bayesian Optimization animation

This repository contains the code for our paper Tuning Legged Locomotion Controllers via Safe Bayesian Optimization. A demo video is available at https://www.youtube.com/watch?v=pceHWpFr3ng.

All relevant code for the paper is in gosafeopt/aquisitions/*, gosafeopt/models/__init__.py, gosafeopt/optim/swarm_opt.py and gosafeopt/optim/base_optimizer.py.

Setup

python -m venv .venv
. .venv/bin/activate
pip install -e . 
wandb login

It might be necessary to create a wandb account at wandb.ai if not already existing.

Examples

To train the pendulum toy problem model with a specific aquisition function and show the result plot run

 python examples/pendulum.py train --aquisition GoSafeOpt --seed 42

 python examples/pendulum.py plot --data-path wandb/wandb/{RUN_NAME}/files/res               

The aquisition function can be one of GoSafeOpt, SafeOptMultiStage, SafeUCB, SafeEI, UCB.

Settings

Most settings can be changed in config.txt

About

Globally Safe Model-free Exploration of Dynamical Systems

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%