Skip to content

Commit 5719595

Browse files
authored
Merge pull request #172 from kuramogura/patch-4
[career] Correct variable in gen_path
2 parents 86ca2ce + 374ef7b commit 5719595

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lectures/career.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -429,9 +429,9 @@ def gen_path(optimal_policy, F, G, t=20):
429429
θ_index = []
430430
ϵ_index = []
431431
for t in range(t):
432-
if greedy_star[i, j] == 1: # Stay put
432+
if optimal_policy[i, j] == 1: # Stay put
433433
pass
434-
elif greedy_star[i, j] == 2: # New job
434+
elif optimal_policy[i, j] == 2: # New job
435435
j = int(qe.random.draw(G))
436436
else: # New life
437437
i, j = int(qe.random.draw(F)), int(qe.random.draw(G))

0 commit comments

Comments
 (0)