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

updated file for conflict detection training. Used for introduction to the problem

parent aef71e50
No related branches found
No related tags found
No related merge requests found
......@@ -43,9 +43,11 @@ def main(argv):
tree_depth = 3
print("main2")
# Get an observation builder and predictor
# The predictor will always predict the shortest path from the current location of the agent.
# This is used to warn for potential conflicts --> Should be enhanced to get better performance!
"""
Get an observation builder and predictor:
The predictor will always predict the shortest path from the current location of the agent.
This is used to warn for potential conflicts --> Should be enhanced to get better performance!
"""
predictor = ShortestPathPredictorForRailEnv()
observation_helper = TreeObsForRailEnv(max_depth=tree_depth, predictor=predictor)
......
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