Skip to content

Commit 94e17a9

Browse files
jstacclaude
andcommitted
Fix build errors in ifp_discrete.md
- Add URL for Epstein-Zin preferences link - Remove reference to non-existent opt_savings_2 lecture - Fix exercise syntax: use {exercise} with {solution-start}/{solution-end} 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 81bd714 commit 94e17a9

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

lectures/ifp_discrete.md

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ solving it via old-fashioned discretization + value function iteration.
4040
Although this approach is not the fastest or the most efficient, it is very
4141
robust and flexible.
4242

43-
For example, if we suddenly decided to add [Epstein--Zin preferences](), or
43+
For example, if we suddenly decided to add [Epstein--Zin preferences](https://en.wikipedia.org/wiki/Epstein%E2%80%93Zin_preferences), or
4444
modify ordinary conditional expectations to quantiles, the technique would
4545
continue to work well.
4646

@@ -332,16 +332,11 @@ Here's the speedup from using `jax.lax.while_loop`.
332332
print(f"Relative speed = {python_time / jax_without_compile:.2f}")
333333
```
334334

335-
We can do better still by switching to alternative algorithms that are better suited to parallelization.
336-
337-
These algorithms are discussed in a {doc}`separate lecture <opt_savings_2>`.
338-
339335

340336
## Exercises
341337

342-
```{exercise-start}
338+
```{exercise}
343339
:label: ifp_ex1
344-
```
345340
346341
In this exercise, we explore an alternative approach to implementing value function iteration using `jax.vmap`.
347342
@@ -367,8 +362,6 @@ Specifically:
367362
4. Implement `value_iteration_vmap` using `jax.lax.while_loop`.
368363
5. Test that your implementation produces the same results as the direct vectorization approach.
369364
6. Compare the execution times of both approaches.
370-
371-
```{exercise-end}
372365
```
373366

374367
```{solution-start} ifp_ex1

0 commit comments

Comments
 (0)