Skip to content

edi_kernels 1.0.0.post4 — ordinal GLMM, NegBin boundary, and GEE kernel fixes

Choose a tag to compare

@kapelner kapelner released this 30 Aug 20:54
· 939 commits to main since this release

Release of edi_kernels (Python bindings for EDI — Experimental Design and Inference C++ kernels). Not packaging-only: it fixes correctness/memory-safety bugs in bound kernels.

Fixed

  • fast_ordinal_glmm: non-contiguous matched-pair group_ids were silently split into singleton groups; rows are now stable-sorted by group before random-effect integration, plus multi-start optimization, a projected-score convergence check, damped-Newton polish, and principled handling of the zero-variance boundary.
  • fast_adjacent_category_logit: probability/Hessian evaluation moved to a log-space recurrence with log-sum-exp normalization, eliminating overflow to Inf/NaN on ordinary data.
  • NegBin family (fast_neg_bin, fast_zinb, fast_hurdle_negbin, …): the Poisson limit (theta >= 1e4) is now recognized as a valid constrained solution with strict acceptance predicates and a guarded reduced-ZIP refit path, instead of failing because the dispersion score cannot vanish at finite theta.
  • gee_pairs_singletons: fixed a stack-buffer-overflow from a mismatched result-struct mirror in the bindings.

Changed (breaking)

  • Fit results return num_iter (was iterations) plus a new hit_iteration_cap boolean.
  • fast_continuation_ratio_regression now models continuing past category k (sign convention reversed to match the other ordinal models).

Packaging

  • Attempted piwheels (32-bit ARM Raspberry Pi) remediation: scipy-openblas32 requirements restricted to architectures it actually publishes for, plus an emulated linux/arm/v7 sdist CI lane.

Full details: CHANGELOG · PyPI