Solution to EE 209 AS Homework 1. Instructor: Prof. Ankur Mehta Team member: Ray Lin, Pengrui Quan
To run the code, under the current directory, type in the command line:
python ./robot.py --feature policy_iteration --errorPr 0.025 --dis 0.9 --plot
Arguments explanation:
--initial: policy initialization
--plot: whether plot out the trajectory or not
--mod: use modified reward function, which require pointing downward
--dis: discount factor
--errorPro: prerotation error probability
--feature: which iteration we are conducting, policy iteration or value iteration