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

scikit-hep / iminuit / 34876504855
100%

Build:
DEFAULT BRANCH: develop
Ran 14 Sep 2026 05:46PM UTC
Jobs 1
Files 18
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 Sep 2026 05:43PM UTC coverage: 99.723%. Remained the same
34876504855

push

github

web-flow
fix: avoid NaN in binned chi2 gradients when mu is zero (#1204)

:robot: _AI text below_ :robot:

`_poisson_chi2_grad` and `_multinomial_chi2_grad` computed `n / mu`
without a guard. If the model prediction underflows to exactly zero in a
bin, this gives NaN or inf and the whole gradient becomes NaN with a
RuntimeWarning. For example, `ExtendedBinnedNLL` with an exponential CDF
at a small scale returns `[nan, nan]` from `grad`.

The value functions use `log_or_zero`, which is constant for `mu <= 0`,
so the consistent derivative of the log term in such bins is zero. Both
gradients now use a helper that evaluates `n / mu` only where `mu > 0`.
The previously commented-out gradient checks in
`test_ExtendedBinnedNLL_negative_weights` are restored, and a new test
covers the multinomial path.

Part of #1192

8 of 8 new or added lines in 1 file covered. (100.0%)

3967 of 3978 relevant lines covered (99.72%)

1.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 34876504855.1 14 Sep 2026 05:46PM UTC 18
99.72
GitHub Action Run
Source Files on build 34876504855
  • Tree
  • List 18
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #34876504855
  • a0287555 on github
  • Prev Build on develop (#34871389235)
  • Next Build on develop (#34877646470)
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