Skip to content

Commit 1924e23

Browse files
authored
update g reshape (#126)
1 parent ccc296c commit 1924e23

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lectures/markov_asset.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -977,6 +977,7 @@ def A(g, sv_model, shapes):
977977
P = np.reshape(P, (I, 1, 1, I, 1, 1))
978978
Q = np.reshape(Q, (1, J, 1, 1, J, 1))
979979
R = np.reshape(R, (1, 1, K, 1, 1, K))
980+
g = np.reshape(g, (1, 1, 1, I, J, K))
980981
a = μ_d - γ * μ_c
981982
b = bar_σ**2 * (jnp.exp(2 * hd) + γ**2 * jnp.exp(2 * hc)) / 2
982983
κ = jnp.exp(a + (1 - γ) * z + b)

0 commit comments

Comments
 (0)