test: JAX Matern-regularization parity assertion (guards PyAutoArray#386)#70
Merged
Conversation
Regression guard for the release-validation Matern crash (PyAutoArray #385): np-vs-JAX parity of the Matern regularization matrix (matern_cov_matrix_from + inv_via_cholesky + MaternKernel.regularization_matrix_from), jitted, at nu=0.5 and nu=1.7 (continuous free prior). Lives in jax_assertions/, not test_autoarray (library unit tests are NumPy-only). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TDCsgNCXacXqiWAPTswWCt
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
Regression guard for the Matern-kernel JAX crash fixed in PyAutoArray#386 (release-validation run
29266305445). Addsscripts/jax_assertions/matern_regularization.py: builds theMaternKernelregularization matrix withxp=npandxp=jnp(jitted) and asserts parity, exercising the tfpbessel_kvepath that was crashing. Coversnu=0.5andnu=1.7(nu is a continuousUniform(0.5,5.5)prior).Belongs here, not in
test_autoarray/— library unit tests are NumPy-only by convention.Library-first gate
Merge after PyAutoArray#386 (the dependency-pin fix). Verified passing against that branch.
🤖 Generated with Claude Code
https://claude.ai/code/session_01TDCsgNCXacXqiWAPTswWCt