How to Solve reinforcement learning Grid world examples using value iteration?

10.8k Views Asked by At

I find either theories or python example which is not satisfactory as a beginner. I just need to understand a simple example for understanding the step by step iterations. Could anyone please show me the 1st and 2nd iterations for the Image that I have uploaded for value iteration? Grid world problem

2

There are 2 best solutions below

0
On BEST ANSWER
0
On

Besides @holibut's links, which are very useful, I also recommend: https://github.com/JaeDukSeo/reinforcement-learning-an-introduction/blob/master/chapter03/GridWorld.py

The author implemented the full grid generation presented in the book. IMHO it is a simpler implementation, and one can debug the grid generation loops to clearly see step by step how the values are computed, and how the bellman equation is applied.