Repository navigation
docs: fix copy-pasted Returns descriptions in logistic, hypergeometric and gumbel - #215
Open
intel-python-devops wants to merge 3 commits into
Open
intel-python-devops wants to merge 3 commits into
intel-python-devops wants to merge 3 commits into
Conversation
intel-python-devops
requested review from
antonwolfy,
jharlow-intel,
ndgrigorian,
vlad-perevezentsev and
xaleryb
as code owners
November 23, 2026 03:49
gumbel had no description for its return value, and hypergeometric said the values are integers in [0, n], copied from binomial, although the function has no n parameter. Describe the drawn samples and give the real support, [max(0, nsample - nbad), min(nsample, ngood)].
antonwolfy
approved these changes
Nov 28, 2026
antonwolfy
left a comment
Collaborator
There was a problem hiding this comment.
LGTM. I pushed a commit fixing the same kind of copy-pasted or missing Returns text in hypergeometric and gumbel, so all three descriptions now match what the functions return. Docstring-only change, so seeded output is unaffected.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
The first commit of this pull request is AI-generated. Please review thoroughly.
Fixes the
Returnssections of three_MKLRandomStatedocstrings inmkl_random/mklrand.pyxthat were copied from other distributions or left empty:logistic: said the values are "all integers in [0, n]", copied from a discrete distribution such asbinomial. The logistic distribution is continuous and unbounded and has nonparameter. It now says "Drawn samples from the parameterized logistic distribution."hypergeometric: said the values are "all integers in [0, n]", but the function takesngood,nbadandnsample, notn. It now describes the drawn samples and gives the real support,[max(0, nsample - nbad), min(nsample, ngood)].gumbel: had no description of the returned samples. It now says "Drawn samples from the parameterized Gumbel distribution."Only docstrings change: no code, signatures or seeded output are affected.