• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

SMTorg / smt / 43595035867
93%

Build:
DEFAULT BRANCH: master
Ran 14 Nov 2026 01:04PM UTC
Jobs 1
Files 87
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

14 Nov 2026 12:28PM UTC coverage: 92.451% (+0.03%) from 92.422%
43595035867

push

github

web-flow
feat(rbf): add JAX path and differentiable predictor with scoped x64 (#850)

## Summary

Adds optional JAX support and a differentiable pure-JAX predictor for
`RBF`, completing the pure-Python + JAX
transition after #857 and #849:

- **`smt/surrogate_models/rbf_idw_backend.py`**:
- Extracts shared JAX input normalization (`_prepare_jax_inputs`) used
by both `make_idw_jax_predictor` and
`make_rbf_jax_predictor`.
- Adds JAX kernel evaluation/derivatives (`_rbf_jax`, enabled via
`USE_JAX=1` or `_backend="jax"`) with scoped
float64 (`_enable_x64`).
- Adds `make_rbf_jax_predictor(xt, d0, sol, poly_degree)`, exposed as
`RBF.get_jax_predictor()`, supporting
`poly_degree` in `{-1, 0, 1}`, scalar/vector `d0`, single- and
multi-output models, `jax.jit`, `jax.jacobian`,
`jax.hessian`, and `jax.vmap`.
- **`smt/surrogate_models/rbf.py`**:
- Exposes `RBF.get_jax_predictor()` (raises `RuntimeError` if called
before training).

## Verification

- `ruff check .` and `ruff format --check`: passed (`211 files already
formatted`).
- `pytest -v smt/surrogate_models/tests/test_rbf.py
smt/surrogate_models/tests/test_idw.py
smt/surrogate_models/tests/test_rbf_idw_backend.py`:
- Default NumPy engine: `21 passed`
- `USE_JAX=1`: `21 passed`
- `USE_NUMBA_JIT=1`: `21 passed`
- Added `TestRBFJAX` covering `poly_degree` `-1 / 0 / 1`, `jax.jit`,
`jax.jacobian`, `jax.hessian` (vs finite
differences and exact `nt=1, poly_degree=-1` center second derivative),
`jax.vmap`, multi-output, and 0D scalar
inputs.
- Verified with `python -m pip wheel --no-deps` on `4-rbf-python` that
SMT builds a pure-Python `py3-none-any`
wheel with 0 C++/Cython/native files remaining in the repository.

---------

Co-authored-by: John T. Hwang <1088091+hwangjt@users.noreply.github.com>
Co-authored-by: Paul Saves <paul.saves@alumni.enac.fr>

75 of 77 new or added lines in 2 files covered. (97.4%)

10447 of 11300 relevant lines covered (92.45%)

0.92 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
77.9
4.29% smt/surrogate_models/rbf_idw_backend.py
Jobs
ID Job ID Ran Files Coverage
1 Test - 43595035867.1 14 Nov 2026 01:04PM UTC 87
92.45
Source Files on build 43595035867
  • Tree
  • List 87
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 953194f2 on github
  • Prev Build on master (#43591650432)
  • Next Build on master (#43828266472)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc