Repository navigation
SuperGLM 0.41.0
Highlights
Faster fits. Exact REML with ten interaction pairs on the 542,406-row freMTPL2 book: 188 s to 72 s at default threads, CPU 2,219 s to 321 s, with the same objective and held-out metrics. SuperLSS NB2: 291 s to 40 s. Post-fit rank work: 68 s to 12 s. Binomial probit: 553 s to 298 s. A first fit on an empty Numba cache spends 20 to 44% less time compiling, and warmup() compiles what every measured first fit needs.
Declaring and exporting models. SuperGLM(terms=[...]) takes the same term helpers SuperLSS does (s, cat, re, ti, interaction, FactorSmooth), alongside features=. Any hashable column label works. Options are typed so editors complete them, and the sklearn wrappers take smoothing="reml". SuperLSS models pickle and save with joblib, and a SplineCategorical interaction exports as a rating table.
Fits that converge, hold and say why. Binned Gamma and Tweedie, Gamma/inverse, stalled REML searches and SCOP splines now converge where 0.40 stopped at a cap. A level whose data separate, such as a region with no claims, predicts what its rows identify: the mean predicted claim rate on a 3,000-row sample goes from 2.8e31 to 0.121. SuperLSS fits and corrected covariances that 0.40 refused now return an answer with a warning saying why. NB2 fits say how many rows sit at the Poisson limit.
Polars 2 and robustness. Polars 2.0 is supported. A SuperLSS smoothing search whose capped parameter's score sits inside its float64 rounding floor no longer fails revalidation. A SuperLSS model saved with to_bytes() now loads on a machine whose log or BLAS rounds differently.
Before you upgrade. Several fits change on refit: binned Gamma, Tweedie, NB2, probit and cloglog; Gamma/log and Gamma/inverse; separated or thin sz levels; some SuperLSS severity and interaction fits. The "Upgrade notes" section below lists each. Saved models load and predict as before. New SuperLSS artifacts are schema 12, which 0.40 cannot read; 0.41 reads 0.40's artifacts. The lock's Numba 0.68 and llvmlite 0.50 Linux wheels need glibc 2.27 or newer; the declared floor numba>=0.62 is unchanged.
The full changelog is the release commit's message (7b1732b) and the tag's annotation.
What's Changed
- One instruction naming the version releases it; 0.40.0 docs follow-ups by @StrudelDoodleS in #489
- Exact-path REML: cross-products and leverages from term-pair tables by @StrudelDoodleS in #490
- Bit-identical speed-ups: exact SSP moments, probit link, rank factor skipped in discarded fits, NB2 warnings by @StrudelDoodleS in #492
- SuperLSS: compiled NB2 kernel, analytic third derivatives for every family, SymPy derivative oracle by @StrudelDoodleS in #491
- Fidelity and guards: tolerance-level correctness by default, certificates on request by @StrudelDoodleS in #493
- SuperLSS: analytic fourth derivatives for every family, generated with SymPy by @StrudelDoodleS in #497
- Fits that ran away now converge or say why: fixed-point stop, inverse-link step halving, adaptive Newton steps, log-binomial boundary by @StrudelDoodleS in #498
- Parallel fits that use their cores: pool-owned parallelism, pooled stop passes, compiled row Kronecker, pooled table Gram by @StrudelDoodleS in #495
- Fit evidence harness and always-on fit recording for benchboard by @StrudelDoodleS in #496
- Binned REML takes observed curvature wherever the observed information is never negative by @StrudelDoodleS in #500
- A first fit compiles 20–44% less, and warmup() covers every route by @StrudelDoodleS in #502
- One term language: SuperGLM(terms=[...]) and feature dicts in the family helpers by @StrudelDoodleS in #503
- certifi 2026.10.19 and pillow 13.0.0 for their security advisories by @StrudelDoodleS in #506
- Term API follow-ups: factor smooths in terms=, any column label, typed options; nothing 0.40 fitted is refused by @StrudelDoodleS in #504
- What earlier releases fitted fits again: SCOP mode check, REML exact-Hessian endgame, kindless splines, old pickles; release differential by @StrudelDoodleS in #507
- SuperLSS fits that raised on indefinite curvature finish and say so; NB2 Fisher information; NB2 at every mean/size ratio by @StrudelDoodleS in #505
- CI shards balanced on CI's own timings; the nested-Schur oracle builds in 4 s, not 100 by @StrudelDoodleS in #509
- Data rank from the Gram and its grey subspace: no full-row factor, the same decisions by @StrudelDoodleS in #494
- sz levels whose line separates predict what their rows identify, not where the fit's walk stopped by @StrudelDoodleS in #508
- SuperLSS corrected covariance returns a disclosed answer instead of refusing by @StrudelDoodleS in #510
- virtualenv 21.14.7 for its two security advisories by @StrudelDoodleS in #512
- The first summary() reuses the fit's data Gram, and dense tensor terms stop pickling their training rows by @StrudelDoodleS in #511
- The other data-rank callers take #494's route, and the TSQR's leaves run in parallel by @StrudelDoodleS in #513
- virtualenv 21.14.9 for its high-severity launcher advisory by @StrudelDoodleS in #517
- Editor browser tests stop flaking, and the export dialog keeps a typed directory by @StrudelDoodleS in #516
- A SplineCategorical interaction exports as a rating table by @StrudelDoodleS in #514
- An NB2 location-scale fit says how many rows have a size at the Poisson limit by @StrudelDoodleS in #515
- Polars 2.0.0 in the lock, and fits on Polars frames work under Polars 2 by @StrudelDoodleS in #518
- A cold start compiles less, warmup() covers every fit, and SuperLSS stops spinning idle threads by @StrudelDoodleS in #519
- chore(deps): bump the github-actions group across 1 directory with 6 updates by @dependabot[bot] in #520
- A capped smoothing parameter's score is stationary within its rounding floor by @StrudelDoodleS in #521
- A saved SuperLSS model loads on any machine by @StrudelDoodleS in #522
- Release 0.41.0 by @StrudelDoodleS in #523
Full Changelog: v0.40.0...v0.41.0
