Skip to content

Commit be0bc15

Browse files
committed
update jax install
1 parent 40c3703 commit be0bc15

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

lectures/lake_model.md

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,7 @@ In addition to what's in Anaconda, this lecture will need the following librarie
3434
```{code-cell} ipython
3535
:tags: [hide-output]
3636
37-
!pip install quantecon
38-
```
39-
40-
We also need to install JAX if you haven't done so already:
41-
42-
```{code-cell} ipython3
43-
:tags: [skip-execution]
44-
45-
!pip install --upgrade jax
37+
!pip install quantecon jax
4638
```
4739

4840
## Overview
@@ -905,7 +897,7 @@ This approach has several advantages:
905897
2. Functions can be JIT-compiled for better performance
906898
907899
In this exercise, your task is to:
908-
1. Update parameters by creating a new instance of the model with the desired parameters (`α=0.02, λ=0.3`).
900+
1. Update parameters by creating a new instance of the model with the parameters (`α=0.02, λ=0.3`).
909901
2. Use JAX's `vmap` to compute steady states for different parameter values
910902
3. Plot how the steady-state unemployment rate varies with the job finding rate $\lambda$
911903
```
@@ -938,7 +930,7 @@ plt.show()
938930
base_model = create_lake_model()
939931
print(f"Base model α: {base_model.α}")
940932
941-
# Update multiple parameters at once
933+
# New model
942934
new_model = create_lake_model(α=0.02, λ=0.3)
943935
print(f"New model α: {new_model.α}, λ: {new_model.λ}")
944936

0 commit comments

Comments
 (0)