Examples of scripts to train agents in the Flatland environment.
Torch Training
The torch_training
folder shows an example of how to train agents with a DQN implemented in pytorch.
In the links below you find introductions to training an agent on Flatland:
- Training an agent for navigation (Introduction)
- Training multiple agents to avoid conflicts (Introduction)
Use this introductions to get used to the Flatland environment. Then build your own predictors, observations and agents to improve the performance even more and solve the most complex environments of the challenge.
With the above introductions you will solve tasks like these and even more...
Sequential Agent
This is a very simple baseline to show you have the complex_level_generator
generates feasible network configurations.
If you run the run_test.py
file you will see a simple agent that solves the level by sequentially running each agent along its shortest path.
This is very innefficient but it solves all the instances generated by complex_level_generator
. However when being scored for the AIcrowd competition, this agent fails due to the duration it needs to solve an episode.
Here you see it in action: