Skip to content

Commit 7a6fa67

Browse files
authored
Replace np.sum(a * b) with a @ b in lecture-python.myst.mccall_q.md (#472)
1 parent 95cc107 commit 7a6fa67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lectures/mccall_q.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ class McCallModel:
171171
# Evaluate value for each state-action pair
172172
# Consider action = accept or reject the current offer
173173
accept = w[i] / (1 - β)
174-
reject = c + β * np.sum(v * q)
174+
reject = c + β * (v @ q)
175175
176176
return np.array([accept, reject])
177177

0 commit comments

Comments
 (0)