Skip to content

Official Github Repository for "Spectral-Risk Safe Reinforcement Learning with Convergence Guarantees". (NeurIPS 2024)

License

Notifications You must be signed in to change notification settings

rllab-snu/Spectral-Risk-Constrained-RL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spectral-Risk-Constrained Policy Optimization (SRCPO)

Requirements

  • Python 3.8 or greater
  • torch==1.12.1
  • gymnasium
  • safety_gymnasium
  • scikit-learn
  • pandas
  • qpsolvers=1.9.0
  • ruamel.yaml

How to train

python main.py --task_cfg_path tasks/{task_name}.yaml --algo_cfg_path algos/{algo_name}/{env_name}.yaml --seed {seed_idx} --gpu_idx {gpu_idx} --wandb

or

bash scripts/train.sh

How to eval

python main.py --task_cfg_path tasks/{task_name}.yaml --algo_cfg_path algos/{algo_name}/{env_name}.yaml --seed {seed_idx} --gpu_idx {gpu_idx} --model_num {model_num} --eval

or

bash scripts/eval.sh

How to test (render)

python main.py --task_cfg_path tasks/{task_name}.yaml --algo_cfg_path algos/{algo_name}/{env_name}.yaml --seed {seed_idx} --gpu_idx {gpu_idx} --model_num {model_num} --test

About

Official Github Repository for "Spectral-Risk Safe Reinforcement Learning with Convergence Guarantees". (NeurIPS 2024)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published