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

pyro-ppl / numpyro / 41439709888
93%

Build:
DEFAULT BRANCH: master
Ran 02 Nov 2026 12:11PM 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

02 Nov 2026 11:48AM UTC coverage: 92.902% (+0.007%) from 92.895%
41439709888

push

github

web-flow
Add ICDF and CDF to BernoulliProbs (#1652)

* Add ICDF and CDF to BernoulliProbs

* Add tests for BernoulliProbs ICDF and CDF

* feat(distributions): add cdf and icdf to BernoulliProbs and BernoulliLogits

Replace the heaviside-based BernoulliProbs.cdf/icdf from this PR and add
the same methods to BernoulliLogits, as requested in review.

icdf is the generalized inverse min{k : F(k) >= q}, so the level
q = P(X = 0) maps to 0; the heaviside version mapped it to 1, which broke
icdf(cdf(0)) == 0. BernoulliLogits computes P(X = 0) as expit(-logits),
which keeps its precision when expit(logits) rounds to 1. NaN values and
parameters propagate as NaN.

Drop the Bernoulli special case in test_cdf_and_icdf, whose
cdf(icdf(q)) == q check cannot hold for a discrete distribution, in favor
of dedicated tests against scipy.stats.bernoulli that cover the jump
level and saturated logits.

Co-authored-by: Dan Manela <danielmanela@gmail.com>

---------

Co-authored-by: Juan Orduz <juanitorduz@gmail.com>

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

15837 of 17047 relevant lines covered (92.9%)

1.7 hits per line

Jobs
ID Job ID Ran Files Coverage
1 test-inference - 41439709888.1 02 Nov 2026 12:54PM UTC 87
71.06
GitHub Action Run
2 test-modeling - 41439709888.2 02 Nov 2026 01:13PM UTC 87
70.17
GitHub Action Run
3 examples - 41439709888.3 02 Nov 2026 12:11PM UTC 87
29.06
GitHub Action Run
Source Files on build 41439709888
  • 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 #41439709888
  • 90343b49 on github
  • Prev Build on master (#41439625645)
  • Next Build on master (#41917821271)
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