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

pyro-ppl / numpyro / 39573199749
93%

Build:
DEFAULT BRANCH: master
Ran 21 Oct 2026 09:19AM UTC
Jobs 3
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

21 Oct 2026 08:57AM UTC coverage: 92.863% (+0.001%) from 92.862%
39573199749

push

github

web-flow
fix(distributions): sample binomials with integer-valued float total counts (#2382)

* fix(distributions): sample binomials with integer-valued float total counts

I found that Binomial and BetaBinomial sampling raised a TypeError when total_count was an integer-valued float array, although such counts pass the constraint and work in log_prob. The binomial sampler now counts trials with integers and returns the draws in the dtype of total_count, so float counts give the same draws as integer counts.

Assisted-by: Claude
Assisted-by: GPT-6 Astra
Signed-off-by: mottopanikeiku <176798723+mottopanikeiku@users.noreply.github.com>

* test(distributions): parametrize the binomial test over the count dtype

I replaced the test with the suggested one over float32, int16 and uint8 counts, which also covers the non-default integer dtypes that failed on master, and widened the comment in _binomial to match.

Assisted-by: Claude
Assisted-by: GPT-6 Astra
Signed-off-by: mottopanikeiku <176798723+mottopanikeiku@users.noreply.github.com>

---------

Signed-off-by: mottopanikeiku <176798723+mottopanikeiku@users.noreply.github.com>
Co-authored-by: mottopanikeiku <176798723+mottopanikeiku@users.noreply.github.com>

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

15796 of 17010 relevant lines covered (92.86%)

1.7 hits per line

Jobs
ID Job ID Ran Files Coverage
1 examples - 39573199749.1 21 Oct 2026 09:19AM UTC 87
29.05
GitHub Action Run
2 test-modeling - 39573199749.2 21 Oct 2026 10:17AM UTC 87
70.08
GitHub Action Run
3 test-inference - 39573199749.3 21 Oct 2026 09:50AM UTC 87
71.15
GitHub Action Run
Source Files on build 39573199749
  • Tree
  • List 87
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #39573199749
  • 3d990ab7 on github
  • Prev Build on master (#39423603539)
  • Next Build on master (#39707967736)
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