Skip to content

Commit 217d5c1

Browse files
committed
updates
1 parent 9be4a24 commit 217d5c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lectures/optgrowth_fast.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ import numpy as np
6565
import jax
6666
import jax.numpy as jnp
6767
import jax.random as jr
68-
import jax.scipy.optimize as jsp
6968
from typing import NamedTuple
7069
import quantecon as qe
7170
```
@@ -425,7 +424,8 @@ for β in (0.8, 0.9, 0.98):
425424
og_temp = create_optgrowth_model(β=β, s=0.05)
426425
c_greedy_temp, _ = vfi(og_temp)
427426
428-
σ_func = lambda x: np.interp(x, og_temp.y_grid, np.asarray(c_greedy_temp))
427+
σ_func = lambda x: np.interp(x, og_temp.y_grid,
428+
np.asarray(c_greedy_temp))
429429
y = simulate_og(σ_func, og_temp)
430430
ax.plot(y, lw=2, alpha=0.6, label=rf'$\beta = {β}$')
431431

0 commit comments

Comments
 (0)