Skip to content

Support for Numpy BitGenerators PR#3: Advanced Distributions Support. - #8040

Merged
sklam merged 3 commits into
numba:mainfrom
kc611:np_adv_distributions
Jul 8, 2022
Merged

sklam merged 3 commits into
numba:mainfrom
kc611:np_adv_distributions

Conversation

@kc611

@kc611 kc611 commented May 11, 2022 •

Copy link
Copy Markdown
Contributor

This PR builds on top of #8038

Adds the following distributions as Generator methods:

  • Generator().beta()
  • Generator().f()
  • Generator().chisquare()
  • Generator().standard_cauchy()
  • Generator().pareto()
  • Generator().weibull()
  • Generator().power()
  • Generator().laplace()
  • Generator().logistic()
  • Generator().lognormal()
  • Generator().rayleigh()
  • Generator().standard_t()
  • Generator().wald()
  • Generator().geometric()
  • Generator().zipf()
  • Generator().triangular()
  • Generator().poisson()
  • Generator().negative_binomial()

@kc611
kc611 marked this pull request as draft May 11, 2022 19:24
@kc611 kc611 changed the title Support for Numpy BitGenerators PR#2: Advanced Distributions Support. Support for Numpy BitGenerators PR#3: Advanced Distributions Support. May 11, 2022
@sklam sklam added this to the Numba 0.57 RC milestone Jun 1, 2022
@kc611
kc611 force-pushed the np_adv_distributions branch 3 times, most recently from efee6af to 3091085 Compare June 28, 2022 12:31

@esc esc left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The docs will need an update to reflect the new distributions.

* :func:`numpy.random.Generator().standard_normal()`
* :func:`numpy.random.Generator().standard_exponential()`
* :func:`numpy.random.Generator().standard_gamma()` (*)
* :func:`numpy.random.Generator().uniform()` (*)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This will need adding the distributions introduced in this PR.

@esc

esc commented Jun 30, 2022

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Contributor
Azure Pipelines successfully started running 1 pipeline(s).

@esc esc self-assigned this Jul 5, 2022
@kc611
kc611 force-pushed the np_adv_distributions branch from 6897181 to 280a920 Compare July 5, 2022 07:01
@esc esc added 3 - Ready for Review Effort - short Short size effort needed Effort - medium Medium size effort needed and removed 2 - In Progress Effort - short Short size effort needed labels Jul 5, 2022
@kc611
kc611 marked this pull request as ready for review July 7, 2022 09:12
@kc611
kc611 force-pushed the np_adv_distributions branch from e920b91 to 8bfda92 Compare July 7, 2022 11:00
@kc611
kc611 force-pushed the np_adv_distributions branch from 2b9fd74 to 26406df Compare July 7, 2022 11:34
@esc

esc commented Jul 8, 2022

Copy link
Copy Markdown
Member

numba_smoketest_cpu_nprgen_17 has passed! 🟢

@esc esc added 5 - Ready to merge Review and testing done, is ready to merge BuildFarm Passed For PRs that have been through the buildfarm and passed and removed 3 - Ready for Review labels Jul 8, 2022

@esc esc left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I cross checked all the implemented distributions, all of them are being tested and all type-checks are implemented. Public CI and the Anaconda Build Farm have passed on this, so I am marking it as RTM now.

@esc

esc commented Jul 11, 2022

Copy link
Copy Markdown
Member

Thank you for the patch!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

5 - Ready to merge Review and testing done, is ready to merge BuildFarm Passed For PRs that have been through the buildfarm and passed Effort - medium Medium size effort needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants