-
-
Save adityavk/d946f7c329ca8571667753e386cb22f6 to your computer and use it in GitHub Desktop.
Example implementation of policy iteration for a toy MDP
This file contains 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
# Extract the value function, the history of log V(s), and the optimal policy learnt by PI | |
value_func_pi, log_value_func_history_pi, policy_iteration_policy = planner.policy_iteration(gamma=0.99) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment