This repository is for Accelerating Human-AI Co-adaptation. Adapted our code from 'https://github.com/VT-Collab/RILI_co-adaptation/tree/main' which is the main repository for the paper "Learning Latent Representations to Co-Adapt to Humans" [http://arxiv.org/abs/2212.09586].
In this repository we include codes for the two strategies:
- RILI vs SAC
- Multiple Agents
You can install the packages by running the following command
pip install -r requirements.txt
Then, install the gym environment from any folder:
cd multiple_agents
cd 2Agents
cd gym-rili
pip install -e .
cd ..
main.py
: Contains code for training the Hider and Seeker in Circle environmentreplaymemory.py
: Contains code for storing RILI agent's memoryreplaymemory_SAC.py
: Contains code for storing memory of SAC agentmodels/
: directory for saved agentsruns/
: directory to visualize losses and rewards usingtensorboard --logdir runs
gym-rili/gym_rili/envs/circle.py
: main environment for our codealgos/sac_agent.py
andalgos/sac_model_networks.py
: Codes for the SAC Agentalgos/rili.py
,algos/model_rili.py
andalgos/model_sac.py
: Codes for the RILI Agent
- code for RILI Agent
main.py
: Contains code for pretraining the model with 2 agentsmaintest.py
: Contains code for testing the pre-trained model on circle environmentreplaymemory.py
: Contains code for storing memoryenv/circle.py
: Contains code for circle-N environment used to pretrain 3 agents
main.py
: Contains code for pretraining the model with 3 agentsmaintest.py
: Contains code for testing the pre-trained model on circle environmentreplaymemory.py
: Contains code for storing memoryenv/circle.py
: Contains code for circle-N environment used to pretrain 3 agents