Skip to content

Commit 02dc2cc

Browse files
Copilotmmcky
andcommitted
Fix JAX dependency in environment.yml and missing AMSSParams import
Co-authored-by: mmcky <8263752+mmcky@users.noreply.github.com>
1 parent de35bb0 commit 02dc2cc

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

environment.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,6 @@ dependencies:
1818
- sphinx-togglebutton==0.3.2
1919
# Docker Requirements
2020
- pytz
21+
# JAX for lecture content
22+
- jax
2123

lectures/_static/lecture_specific/amss/jax_utilities.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,16 @@ class AMSSModelParams(NamedTuple):
9494
bounds_v: jnp.ndarray # Bounds for value function optimization
9595

9696

97+
class AMSSParams(NamedTuple):
98+
"""Parameters for AMSS model."""
99+
β: float # Discount factor
100+
Π: jnp.ndarray # Markov transition matrix
101+
g: jnp.ndarray # Government spending by state
102+
x_grid: tuple # Grid parameters (x_min, x_max, x_num)
103+
bounds_v: jnp.ndarray # Bounds for optimization
104+
utility: 'UtilityFunctions' # Utility functions
105+
106+
97107
class UtilityFunctions(NamedTuple):
98108
"""Collection of utility functions and their derivatives."""
99109
U: callable # Utility function U(c, l, params)

0 commit comments

Comments
 (0)