Add project 3 RL template.
This commit is contained in:
2
p3_rl/test_cases/q3/1-question-3.1.solution
Normal file
2
p3_rl/test_cases/q3/1-question-3.1.solution
Normal file
@@ -0,0 +1,2 @@
|
||||
# This is the solution file for test_cases/q3/1-question-3.1.test.
|
||||
# File intentionally blank.
|
||||
31
p3_rl/test_cases/q3/1-question-3.1.test
Normal file
31
p3_rl/test_cases/q3/1-question-3.1.test
Normal file
@@ -0,0 +1,31 @@
|
||||
class: "GridPolicyTest"
|
||||
|
||||
# Function in module in analysis that returns (discount, noise)
|
||||
parameterFn: "question3a"
|
||||
|
||||
# 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 N _ _
|
||||
_ _ _ _ _
|
||||
"""
|
||||
2
p3_rl/test_cases/q3/2-question-3.2.solution
Normal file
2
p3_rl/test_cases/q3/2-question-3.2.solution
Normal file
@@ -0,0 +1,2 @@
|
||||
# This is the solution file for test_cases/q3/2-question-3.2.test.
|
||||
# File intentionally blank.
|
||||
31
p3_rl/test_cases/q3/2-question-3.2.test
Normal file
31
p3_rl/test_cases/q3/2-question-3.2.test
Normal file
@@ -0,0 +1,31 @@
|
||||
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 _ _ _ _
|
||||
_ _ _ _ _
|
||||
"""
|
||||
2
p3_rl/test_cases/q3/3-question-3.3.solution
Normal file
2
p3_rl/test_cases/q3/3-question-3.3.solution
Normal file
@@ -0,0 +1,2 @@
|
||||
# This is the solution file for test_cases/q3/3-question-3.3.test.
|
||||
# File intentionally blank.
|
||||
31
p3_rl/test_cases/q3/3-question-3.3.test
Normal file
31
p3_rl/test_cases/q3/3-question-3.3.test
Normal file
@@ -0,0 +1,31 @@
|
||||
class: "GridPolicyTest"
|
||||
|
||||
# Function in module in analysis that returns (discount, noise)
|
||||
parameterFn: "question3c"
|
||||
|
||||
# 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 E E N
|
||||
_ _ _ _ _
|
||||
"""
|
||||
2
p3_rl/test_cases/q3/4-question-3.4.solution
Normal file
2
p3_rl/test_cases/q3/4-question-3.4.solution
Normal file
@@ -0,0 +1,2 @@
|
||||
# This is the solution file for test_cases/q3/4-question-3.4.test.
|
||||
# File intentionally blank.
|
||||
36
p3_rl/test_cases/q3/4-question-3.4.test
Normal file
36
p3_rl/test_cases/q3/4-question-3.4.test
Normal file
@@ -0,0 +1,36 @@
|
||||
class: "GridPolicyTest"
|
||||
|
||||
# Function in module in analysis that returns (discount, noise)
|
||||
parameterFn: "question3d"
|
||||
|
||||
# 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: """
|
||||
_ _ _ _ _
|
||||
_ _ _ _ _
|
||||
_ _ _ _ _
|
||||
N _ _ _ _
|
||||
_ _ _ _ _
|
||||
"""
|
||||
|
||||
# State the most probable path must visit
|
||||
# (x,y) for a particular location; (0,0) is bottom left
|
||||
# TERMINAL_STATE for the terminal state
|
||||
pathVisits: "(4,2)"
|
||||
2
p3_rl/test_cases/q3/5-question-3.5.solution
Normal file
2
p3_rl/test_cases/q3/5-question-3.5.solution
Normal file
@@ -0,0 +1,2 @@
|
||||
# This is the solution file for test_cases/q3/5-question-3.5.test.
|
||||
# File intentionally blank.
|
||||
36
p3_rl/test_cases/q3/5-question-3.5.test
Normal file
36
p3_rl/test_cases/q3/5-question-3.5.test
Normal file
@@ -0,0 +1,36 @@
|
||||
class: "GridPolicyTest"
|
||||
|
||||
# Function in module in analysis that returns (discount, noise)
|
||||
parameterFn: "question3e"
|
||||
|
||||
# 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: """
|
||||
_ _ _ _ _
|
||||
_ _ _ _ _
|
||||
_ _ _ _ _
|
||||
_ _ _ _ _
|
||||
_ _ _ _ _
|
||||
"""
|
||||
|
||||
# State the most probable path must not visit
|
||||
# (x,y) for a particular location; (0,0) is bottom left
|
||||
# TERMINAL_STATE for the terminal state
|
||||
pathNotVisits: "TERMINAL_STATE"
|
||||
2
p3_rl/test_cases/q3/CONFIG
Normal file
2
p3_rl/test_cases/q3/CONFIG
Normal file
@@ -0,0 +1,2 @@
|
||||
max_points: "5"
|
||||
class: "NumberPassedQuestion"
|
||||
Reference in New Issue
Block a user