Given points X and Y the goal is to find the shortest path from X to Y by using Reinforcement Learning from scratch. The only library available is Numpy.
python start.py
# from q_learning import route
# route('E', 'G')
# ['E', 'I', 'J', 'F', 'B', 'C', 'G']
# route('C', 'L')
# ['C', 'G', 'H', 'L']
- Python 3.7.3
- Numpy 1.18.1