Skip to content
Snippets Groups Projects
Commit 07724835 authored by Erik Nygren's avatar Erik Nygren :bullettrain_front:
Browse files

Update Getting_Started_Training.md

parent ac0c34ec
No related branches found
No related tags found
No related merge requests found
...@@ -50,3 +50,16 @@ Each node is filled with information gathered along the path to the node. Curren ...@@ -50,3 +50,16 @@ Each node is filled with information gathered along the path to the node. Curren
- 9: agent in the opposite direction - 9: agent in the opposite direction
- n = number of agents present other direction than myself - n = number of agents present other direction than myself
- 0 = no agent present other direction than myself - 0 = no agent present other direction than myself
For training purposes the tree is flattend into a single array.
## Training
Let us now train a simle double dueling DQN agent to navigate to its target on flatland. We start by importing flatland
```
from flatland.envs.generators import complex_rail_generator
from flatland.envs.observations import TreeObsForRailEnv
from flatland.envs.rail_env import RailEnv
from flatland.utils.rendertools import RenderTool
from utils.observation_utils import norm_obs_clip, split_tree
```
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment