Skip to content
/ CAPS Public

Implementation of CAPS: Comprehensible Abstract Policy Summaries

Notifications You must be signed in to change notification settings

mccajl/CAPS

Repository files navigation

CAPS

This project implements CAPS: Comprehensible Abstract Policy Summaries

Joe McCalmon, Thai Le, SarraAlqahtani, Dongwon Lee, “CAPS: Comprehensible Abstract Policy Summaries for Explaining Reinforcement Learning Agents”, The 21st International Conference on Autonomous Agents and Multiagent Systems (AAMAS2022), accepted

To run CAPS for an implemented environment:

pip install -r requirements.txt

python run.py --env='env_name' --path='model_path' --other_flags=...

Ex: python run.py --env=mountain --path=./MountainCar/checkpoints/checkpoint-580 --num_episodes=3 --alg=PPO

To run CAPS with a new environment:

  1. Train the environment separately. Save the tensorflow or pytorch model.
  2. Implement a function which will run the agent in testing and return the dataset, D, specified in the paper.
  3. Alter run.py to include your test function, and handle env and path flags appropriately.
  4. Create a class in translation.py that includes your user-predicates, following the template laid out in the code.
  5. Run CAPS

About

Implementation of CAPS: Comprehensible Abstract Policy Summaries

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages