Skip to content

Commit

Permalink
update g reshape (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
HumphreyYang authored Sep 29, 2023
1 parent ccc296c commit 1924e23
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lectures/markov_asset.md
Original file line number Diff line number Diff line change
Expand Up @@ -977,6 +977,7 @@ def A(g, sv_model, shapes):
P = np.reshape(P, (I, 1, 1, I, 1, 1))
Q = np.reshape(Q, (1, J, 1, 1, J, 1))
R = np.reshape(R, (1, 1, K, 1, 1, K))
g = np.reshape(g, (1, 1, 1, I, J, K))
a = μ_d - γ * μ_c
b = bar_σ**2 * (jnp.exp(2 * hd) + γ**2 * jnp.exp(2 * hc)) / 2
κ = jnp.exp(a + (1 - γ) * z + b)
Expand Down

0 comments on commit 1924e23

Please sign in to comment.