Lux AI Competition - https://www.kaggle.com/c/lux-ai-2021
The architecture I used was inspired by this post
Major changes:
- Separate model to predict city actions {BUILD_WORKER, RESEARCH, NOTHING}
- Transfer actions for units {TRANSFER_NORTH, TRANSFER_SOUTH, TRANSFER_WEST, TRANSFER_EAST}
- Augmentations (Flip, Rotate)
agents/IL_1689.tar.gz
- My best agent, 10th place in the competition
How to train the agent:
- download episodes, example: https://www.kaggle.com/code/robga/simulations-episode-scraper-match-downloader
- train the unit model:
python3 imitation_learning/train_units.py --episode_dir "path_to_episodes"
- train the city model:
python3 imitation_learning/train_cities.py --episode_dir "path_to_episodes"
- copy
agents/IL_1689.tar.gz
and update the models there.