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

SMTorg / smt / 43591650432
93%

Build:
DEFAULT BRANCH: master
Ran 14 Nov 2026 12:22PM 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 11:46AM UTC coverage: 92.422% (+0.02%) from 92.398%
43591650432

push

github

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

## Summary

Follows up #857 with optional JAX support and a differentiable pure-JAX
predictor for `IDW`:

- **`smt/surrogate_models/rbf_idw_backend.py`**:
- Adds a JAX kernel path (`_idw_jax`, enabled via `USE_JAX=1` or
explicit `_backend="jax"`) reusing the
scoped-x64 helper (`_enable_x64`) so user/global JAX float32 state is
never mutated.
- Adds `make_idw_jax_predictor(xt, yt, p)`, exposed as
`IDW.get_jax_predictor()`.
- Handles exact hits (`has_zero`, first duplicate training point wins),
large-distance underflow
(nearest-neighbor fallback), and near-hit inverse-distance overflow in
both FP32 and FP64 without `NaN` in
forward evaluation, analytical derivatives, or JAX autodiff (`jax.grad`,
`jax.jacfwd`, `jax.vmap`).
- **`smt/surrogate_models/idw.py`**:
- Exposes `IDW.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_idw.py
smt/surrogate_models/tests/test_rbf_idw_backend.py`:
- Default NumPy engine: `16 passed`
- `USE_JAX=1`: `16 passed`
- `USE_NUMBA_JIT=1`: `16 passed`
- Added `TestIDWJAX` covering `jax.jit`, `jax.jacobian` / `jax.grad`,
`jax.vmap`, multi-output models,
duplicate/exact hits, `nt=1`, underflow fallback, 0D scalar inputs, and
FP32/FP64 near-hit overflow guards.
Titre et description prêts à coller pour la PR #850 (4-rbf-python)

---------

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

111 of 116 new or added lines in 2 files covered. (95.69%)

1 existing line in 1 file now uncovered.

10379 of 11230 relevant lines covered (92.42%)

0.92 hits per line

Uncovered Changes

Lines Coverage ∆ File
5
73.61
13.28% smt/surrogate_models/rbf_idw_backend.py

Coverage Regressions

Lines Coverage ∆ File
1
95.35
-2.33% smt/applications/mfkplsk.py
Jobs
ID Job ID Ran Files Coverage
1 Test - 43591650432.1 14 Nov 2026 12:22PM UTC 87
92.42
Source Files on build 43591650432
  • Tree
  • List 87
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • c66a9c13 on github
  • Prev Build on master (#43586126121)
  • Next Build on master (#43595035867)
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