Spaces:
Sleeping
Sleeping
Andrei Cozma
commited on
Commit
·
39f7a11
1
Parent(s):
108fb84
Updates
Browse files
run_tests_MC_CliffWalking-v0.py
CHANGED
@@ -23,7 +23,7 @@ def run_test(args):
|
|
23 |
)
|
24 |
|
25 |
|
26 |
-
with multiprocessing.Pool(
|
27 |
tests = []
|
28 |
for update_type in vals_update_type:
|
29 |
for gamma in vals_gamma:
|
|
|
23 |
)
|
24 |
|
25 |
|
26 |
+
with multiprocessing.Pool(8) as p:
|
27 |
tests = []
|
28 |
for update_type in vals_update_type:
|
29 |
for gamma in vals_gamma:
|
run_tests_MC_FrozenLake-v1.py
CHANGED
@@ -10,7 +10,9 @@ max_steps = 200
|
|
10 |
|
11 |
num_tests = 10
|
12 |
|
13 |
-
vals_update_type = [
|
|
|
|
|
14 |
vals_epsilon = [0.1, 0.2, 0.3, 0.4, 0.5]
|
15 |
vals_gamma = [1.0, 0.98, 0.96, 0.94]
|
16 |
|
@@ -21,7 +23,7 @@ def run_test(args):
|
|
21 |
)
|
22 |
|
23 |
|
24 |
-
with multiprocessing.Pool(
|
25 |
tests = []
|
26 |
for update_type in vals_update_type:
|
27 |
for gamma in vals_gamma:
|
|
|
10 |
|
11 |
num_tests = 10
|
12 |
|
13 |
+
vals_update_type = [
|
14 |
+
"first_visit"
|
15 |
+
] # Every visit takes too long due to this environment's reward structure
|
16 |
vals_epsilon = [0.1, 0.2, 0.3, 0.4, 0.5]
|
17 |
vals_gamma = [1.0, 0.98, 0.96, 0.94]
|
18 |
|
|
|
23 |
)
|
24 |
|
25 |
|
26 |
+
with multiprocessing.Pool(8) as p:
|
27 |
tests = []
|
28 |
for update_type in vals_update_type:
|
29 |
for gamma in vals_gamma:
|