Implementation of MTPOMF-Q.
-
./examples/: contains scenarios for Battle Game (also models). -
battle.py: contains code for running Battle Game with trained model -
train_battle.py: contains code for training Battle Game models
Requirements
python==3.6.1gym==0.9.2(might work with later versions)matplotlibif you would like to produce Ising model figures
Before running Battle Game environment, you need to compile it. You can get more helps from: MAgent
Steps for compiling
cd examples/battle_model
./build.shSteps for training models under Battle Game settings
-
Add python path in your
~/.bashrcor~/.zshrc:vim ~/.zshrc export PYTHONPATH=./examples/battle_model/python:${PYTHONPATH} source ~/.zshrc
-
Run training script for training (example):
python3 train_battle.py --algo pomtmfq --n_round 3001 --max_steps 500 --render --save_every 250
-
To reproduce results of the report:
python3 battle.py --algo mtmfq --oppo pomtmfq --n_round 100 --idx 2999 2999 --max_steps 500 --render --mtmfqp 0
-
Code was initialy forked from the following repo.