Skip to content

tryinai/LMAC

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LMAC

Official PyTorch implementation of LMAC from the paper: Discovering Multi-Agent Auto-Curricula in Two-Player Zero-Sum Games.

We offer trained models and test code for 2D-RPS visualisation and Kuhn Poker->Leduc Poker Generalization test. Full training and testing code will be published soon.

How to run

Firstly create and activate the required conda environment.

conda env create -f lmac.yml
conda activate lmac

2D-RPS Testing

123 Visualisation results can be tested in 2d_rps/visualization_2d_rps.ipynb.

Kuhn->Leduc Generalization

123

we provide a local implementation in which one can reproduce the results of generalising our models trained on Kuhn Poker to Leduc Poker.

cd leduc_poker
# To reproduce the approximate best-response results
python3 kuhn_to_leduc.py --br_type 'approx_br_rand'
# To reproduce the exact best-response results
python3 kuhn_to_leduc.py --br_type 'exact_br'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 91.2%
  • Python 8.8%