You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: xp-ify ExponentialKernel + document JAX-gradient support in docstrings
ExponentialKernel's covariance build now threads xp (it previously dropped
the backend at the call site, raising TracerArrayConversionError under
jax.jit/jax.grad) and computes pairwise distances with the same NaN-safe
sqrt(d^2 + 1e-20) dot-product identity as matern_cov_matrix_from —
linalg.norm's derivative is NaN at the zero diagonal, which would poison
every JAX gradient through the kernel. Verified: unit tests pass and JAX
gradients are finite, non-zero and eager/jit-consistent on both the
rectangular and KNN meshes.
Also records the 2026-07 regularization x mesh gradient-sweep findings
where users look them up — the class docstrings: which schemes are
JAX-differentiable on which mesh family (analytic vs scipy neighbors,
split-family compatibility), the Matern/tfp bessel_kve gradient support and
its tfp-nightly requirement, the kernel schemes' explicit-inverse
conditioning caveat, the adaptive-defaults-are-uniform footnote, and the
Delaunay vs KNN mesh gradient split. Behavioural change is limited to
ExponentialKernel's distance form (round-off level; its only unit test
asserts at 1e-4 and passes unchanged).
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013FSqnkgZv97PU9JdkCcthy
0 commit comments