This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| Simple Q learning algorithm with epsilon-greedy action choice | |
| in q-learning algorithm we maintain a table of stats-actions q-values | |
| after attributing the rewards to the goal states | |
| the table is update based on bellman learning formula | |
| to propagate the q values on the state-action back to the start | |
| learning is done through episodes | |
| in the end the result path is calculated from the learned policy |