Skip to content

doc(gh-2187): docstrings for Gumbel, Laplace, Logistic#2202

Merged
Qazalbash merged 2 commits into
pyro-ppl:masterfrom
Metbcy:doc/gh-2187-laplace-logistic-gumbel
May 28, 2026
Merged

doc(gh-2187): docstrings for Gumbel, Laplace, Logistic#2202
Qazalbash merged 2 commits into
pyro-ppl:masterfrom
Metbcy:doc/gh-2187-laplace-logistic-gumbel

Conversation

@Metbcy
Copy link
Copy Markdown
Contributor

@Metbcy Metbcy commented May 27, 2026

Refs #2187.

Picks up three more continuous distributions on the docs checklist, following the same template as #2188, #2192, and #2199:

  • Gumbel — class, __init__, sample, log_prob, mean, variance, cdf, icdf
  • Laplace — class, __init__, sample, log_prob, mean, variance, cdf, icdf, entropy
  • Logistic — class, __init__, sample, log_prob, mean, variance, cdf, icdf, entropy

All three share the loc / scale real / positive shape, so the docstrings line up nicely. PDF / log-PDF / CDF / quantile formulas use short symbols (μ, β, b, s) and :attr: cross-refs to the parameter names, matching the style asked for in the #2199 review.

Docstrings only — no logic changes.

Verified:

  • ruff check numpyro/distributions/continuous.py clean
  • ruff format --check numpyro/distributions/continuous.py clean
  • pytest test/test_distributions.py -k "Gumbel or Laplace or Logistic" → 511 passed, 87 skipped

…Logistic distributions

Adds math-flavored docstrings to three more continuous distributions on the
pyro-ppl#2187 checklist, following the template from pyro-ppl#2188, pyro-ppl#2192, and pyro-ppl#2199:

- Gumbel: class, __init__, sample, log_prob, mean, variance, cdf, icdf.
- Laplace: class, __init__, sample, log_prob, mean, variance, cdf, icdf, entropy.
- Logistic: class, __init__, sample, log_prob, mean, variance, cdf, icdf, entropy.

Docstrings only, no logic changes. ruff check and ruff format --check are
clean.
Copy link
Copy Markdown
Collaborator

@Qazalbash Qazalbash left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have pushed some fixes. Rest is good. Thanks @Metbcy.

@Qazalbash Qazalbash merged commit 6b68d73 into pyro-ppl:master May 28, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants