Skip to content
Snippets Groups Projects
Forked from Flatland / baselines
75 commits behind the upstream repository.
user avatar
Erik Nygren authored
dc738d78
History

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:

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...

Conflict_Avoidance

RLLib Training

The RLLib_training folder shows an example of how to train agents with algorithm from implemented in the RLLib library available at: https://github.com/ray-project/ray/tree/master/python/ray/rllib

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:

Sequential_Agent