Question: 9. (15 points) Value Function Approximation. The robot given below is trying to explore the area and find safe routes to resources. The state of


9. (15 points) Value Function Approximation. The robot given below is trying to explore the area and find safe routes to resources. The state of the robot is the grid it is in. Robot can move in four cardinal directions. The landmarks, L1 and L2, signify that there is a resource close-by. The locations of these landmarks are known to the robot (L1 = (211, y1) and L2 = (812, yl2)). 4 Actions: Up Left + 3 L1 Right N 2 L2 Down State: (x,y) location of the robot, e.g. (2,1) in the figure L1 and L2: Known landmarks Discount: 1.0 1 1 2 3 4 The robot wants to use function approximation get the values of each state. It decides to use the following features, given the current state s = (x, y). . Current x-coordinate: fi(8) = 2 Current y-coordinate: f2(8) = y Manhattan Distance to Ll: 3() = 12 - 1| + y - yul Manhattan Distance to L2: f4(8) = 12 - 212 + y - y12 Furthermore, it uses a linear function approximator: V (3,w) = wifi(s) + w2f2(8) + w3f3(s) + wafa(s) = w"f(s) The robot then observes the following transitions: (2, 1), -0.1 + (2,2), -0.1 +(2,3), +1 Answer the questions below: (a) (3 points) Calculate the feature vectors of the observed states (b) (12 points) Use the observed transitions to update the weights, starting from zero weights with the learning rate a = 0.2 and the discount factor 7= 1.0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
