Releases: QuantEcon/lecture-python.myst
Releases · QuantEcon/lecture-python.myst
publish-2025nov13b
What's Changed
Full Changelog: publish-2025nov13...publish-2025nov13b
publish 2025 nov 13
Remove searchsorted from mccall with sep (#696) * misc * misc
publish-2025nov12
What's Changed
- Update runs-on.yml with new AMI for CUDA 13.0 support by @mmcky in #693
- Remove PyTorch and Pyro-PPL from workflows by @mmcky in #689
- Update Job Search III: Add utility function to mathematical formulation by @jstac in #690
- Refactor McCall lecture: Emphasize persistent and transitory wage shocks by @jstac in #691
Full Changelog: publish-2025nov11...publish-2025nov12
publish 2025 nov 11
Fix JAX compatibility issues in Job Search III lecture (#687)
* Fix JAX compatibility issues in Job Search III lecture
Updated mccall_model_with_sep_markov.md to fix several JAX-related issues:
- Refactored vfi() to return only v_final instead of tuple, making it more consistent with VFI pattern
- Removed separate successive_approx() function and integrated iteration logic directly into vfi()
- Fixed JAX decorators: changed @jit to @jax.jit and @partial(jit, ...) to @partial(jax.jit, ...)
- Rewrote get_reservation_wage() to use jnp.argmax() instead of jnp.where() to avoid JAX concretization errors in JIT compilation
- Updated all vfi() call sites to explicitly compute policy with get_greedy(v_star, model)
- Removed @jit decorators from T() and get_greedy() functions (not needed)
Also improved wording in mccall_model_with_separation.md for clarity.
Tested: Converted to Python and ran successfully without errors.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
* Standardize continuation value notation in Job Search II lecture
Updated the McCall model with separation to use h = u(c) + β * sum_w v_u(w) q(w)
as the continuation value, matching the notation from the basic McCall model lecture.
This makes the progression between lectures more intuitive for readers:
- Basic model: h = c + β * sum_w v*(w) q(w)
- Separation model: h = u(c) + β * sum_w v_u(w) q(w)
Key changes:
- Replaced scalar d with h throughout mathematical derivations
- Updated closed-form expression for v_e(w) to use h
- Modified iteration algorithm to solve for h instead of d
- Simplified Bellman equations using h notation
- Updated all code functions (compute_v_e, update_h, solve_model)
- Changed plots and comments to reference h
This improves consistency across the job search lecture series and makes
the mathematical structure clearer by explicitly showing the continuation
value includes both current utility and discounted future value.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
* Remove JAX from pip install in Job Search II lecture
The JAX library is already included in the base environment and doesn't need
to be explicitly installed, which was causing build failures.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
* Remove JAX from pip install in Job Search III lecture
The JAX library is already included in the base environment and doesn't need
to be explicitly installed, which was causing build failures.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
* Update PyTorch installation to use cu121
* Update CI workflow to install only PyTorch packages
Removed 'torchaudio' from the installation command for PyTorch.
* fix: JAX version pinning
* install new CUDANN binaries
* remove pytorch
* misc
* Update mccall_model_with_separation: Change utility parameter from sigma to gamma and use glue for figures
Updated the McCall model with separation lecture with the following changes:
Key changes:
- Changed utility function parameter from σ (sigma) to γ (gamma)
- Moved γ default value from utility function to Model class (γ: float = 2.0)
- Updated all functions (compute_v_e, update_h, solve_model) to pass γ parameter
- Simplified model unpacking to use tuple unpacking directly (e.g., α, β, γ, c, w, q = model)
- Replaced static PNG figures with myst-nb glue functionality
- Added glue import and glue() calls in exercise solutions
- Converted {figure} directives to {glue:figure} directives for dynamic figure generation
Benefits:
- More consistent parameter naming (gamma is standard for CRRA utility)
- Better code organization with parameter defaults in Model class
- Cleaner unpacking syntax
- Dynamic figure generation eliminates need for static PNG files
- Figures automatically stay in sync with code
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
* Remove redundant PNG files for mccall_model_with_separation
Removed static PNG files that are now dynamically generated using myst-nb glue:
- mccall_resw_alpha.png
- mccall_resw_beta.png
- mccall_resw_c.png
These figures are now generated from the exercise solution code and displayed via glue:figure directives, eliminating the need for static files and ensuring figures always match the code.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
* misc
---------
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: mmcky <mamckay@gmail.com>
Publish 2025 Nov 9
[mcall_correlated] Convert to JAX and content checks (#616) * convert to JAX and make title style sheet compliant * minor variable name update * minor updates * minor update * update jax install * Remove @jax.jit from Q operator for better performance Removed @jax.jit decorator from the Q operator function since it's called within the already-jitted compute_fixed_point function. JAX documentation recommends avoiding nested jit decorators as they create compilation boundaries that prevent XLA from optimizing the full computation graph. Performance testing showed ~10% improvement by letting the outer jit compile the entire computation including Q. Also cleaned up formatting: - Renamed 'state' to 'loop_state' for clarity in while_loop functions - Improved function signature formatting - Standardized code style 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> --------- Co-authored-by: John Stachurski <john.stachurski@gmail.com> Co-authored-by: Claude <noreply@anthropic.com>
publish-2025nov06
What's Changed
Full Changelog: publish-2025nov05b...publish-2025nov06
publish-2025nov05b
What's Changed
Full Changelog: publish-2025nov05...publish-2025nov05b
publish-2025nov05
What's Changed
- ⬆️ Bump softprops/action-gh-release from 1 to 2 by @dependabot[bot] in #671
- Add new lecture: Job Search with Separation and Markov Wages by @jstac in #667
- Split lake model lecture into two consecutive lectures by @jstac in #665
- FIX: duplicate equation label lake_lamda (latex) by @mmcky in #673
Full Changelog: publish-2025nov03...publish-2025nov05
publish-2025nov03
What's Changed
- Refine lake_model.md: Remove redundant decorators and improve organization by @jstac in #664
- MAINT: upgrade quantecon-book-theme==0.10.0 by @mmcky in #668
Full Changelog: publish-2025oct30...publish-2025nov03
publish-2025oct30
What's Changed
- fix: Skip Netlify deployment for Dependabot PRs by @mmcky in #660
- ⬆️ Bump actions/upload-artifact from 4 to 5 by @dependabot[bot] in #659
- MAINT: Phase 1 - Add HTML archives to GitHub release assets by @mmcky in #662
Full Changelog: publish-2025oct22...publish-2025oct30