intro2ai/p3_rl/test_cases/q3/2-question-3.2.test

32 lines
698 B
Plaintext
Raw Normal View History

2021-11-27 16:16:51 +01:00
class: "GridPolicyTest"
# Function in module in analysis that returns (discount, noise)
parameterFn: "question3b"
# GridWorld specification
# _ is empty space
# numbers are terminal states with that value
# # is a wall
# S is a start state
#
grid: """
_ _ _ _ _
_ # _ _ _
_ # 1 # 10
S _ _ _ _
-10 -10 -10 -10 -10
"""
gridName: "discountGrid"
# Policy specification
# _ policy choice not checked
# N, E, S, W policy action must be north, east, south, west
#
policy: """
E E S _ _
N _ S _ _
N _ _ _ _
N _ _ _ _
_ _ _ _ _
"""