Skip to content

edi_kernels 1.0.1 — ZINB boundary-collapse fix, fixed_idx off-by-one

Choose a tag to compare

@kapelner kapelner released this 14 Sep 18:38
· 832 commits to main since this release

Kernel-level bug fixes in R/EDI/src/*.cpp (commits 831be080, c289adfa, 5e8f4578, 2026-09-03 to 2026-09-07) that came out of the R package's comprehensive-suite testing rounds. The Python bindings compile the same sources, so they inherit these fixes verbatim — this release tracks R/EDI/DESCRIPTION's own 1.0.0 → 1.0.1 bump rather than a .postN packaging-only suffix.

Fixed

  • fast_zinb / fast_zinb_with_var: zero-inflated negative-binomial fits whose zero-inflation submodel has nothing to explain (no excess zeros in the data) no longer return an arbitrary large-magnitude zero-inflation intercept with a spurious converged=True. A new boundary fallback detects the collapse (every observation's zero-inflation linear predictor at or below -10) and refits the reduced plain negative-binomial likelihood with the zero-inflation part switched off. The returned params stay in the full ZINB layout, with the zero-inflation intercept anchored at -10.
  • fast_zinb_with_var results gain a zero_inflation_at_boundary bool (alongside the existing dispersion_at_poisson_boundary) and report reduced_model = "NegBinNoZI" when that fallback supplied the fit; vcov is computed conditional on the boundary, dropping the unidentified zero-inflation coefficient block before inversion.
  • fast_zinb / fast_zinb_with_var with fixed_idx/fixed_values: fixed an off-by-one where the caller's zero-based index was handed to a helper expecting one-based indices, which pinned the wrong parameter during the reduced ZIP refit under the dispersion-at-Poisson-boundary fallback.
  • LikelihoodFitResult gained the zero_inflation_at_boundary member, defaulting to false for every non-ZINB likelihood.

CI

  • Dropped the Bullseye/Python 3.9 ARMv7 sdist-parity job from build-wheels.yml (piwheels now runs only Bookworm/Trixie builders for this package, and Debian 11 left LTS on 2026-08-31). x86/macOS/Windows 3.9 wheels are still built by cibuildwheel.

Full details: CHANGELOG · PyPI