Revise JAX intro lecture and add autodiff lecture#513
Open
Conversation
- Fix coefficient mismatch in NumPy vs JAX function comparison - Update jax.random.PRNGKey to jax.random.key throughout - Add code-generated figures (PRNG key splitting tree, JIT pipeline) - Add vmap section with examples and transformation composition - Rework gradients section as autodiff preview with forward reference - Add autodiff lecture (adapted from lecture-jax) to TOC - Consolidate all imports into initial cell Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Replace artificial sum-of-squares vmap example with mean/median statistics - Add explanation of why Python loops are inefficient with JAX - Move all imports to initial cell per lecture conventions Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Fix variable name typo (z_max_numpy → z_max_numba) - Fix vmap v2 print label - Fix garbled em dash - Consolidate imports to top of lecture - Use jnp.meshgrid instead of np.meshgrid for JAX arrays - Replace cm.jet with cm.viridis - Qualify JAX speed claim re GPU - Add overall recommendations section synthesizing trade-offs Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Contributor
Author
Detailed changelog
|
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
0.1 * x**2vsx**2) in NumPy/JAX function comparison; updated deprecatedjax.random.PRNGKeytojax.random.keythroughoutvmapsection with mean/median example showing why Python loops are inefficient with JAX(jax_intro)=reference label, updated_toc.ymlTest plan
🤖 Generated with Claude Code