Repository navigation
Add continuous distributions to dpnp.random.Generator - #3158
Open
ndgrigorian wants to merge 1 commit into
Open
ndgrigorian wants to merge 1 commit into
ndgrigorian wants to merge 1 commit into
Conversation
ndgrigorian
requested review from
antonwolfy and
vlad-perevezentsev
as code owners
November 4, 2026 19:46
This was referenced Nov 4, 2026
ndgrigorian
force-pushed
the
feature/device-rng-generator
branch
from
November 4, 2026 19:47
dbdb2c8 to
3963d20
Compare
ndgrigorian
force-pushed
the
feature/device-rng-continuous
branch
from
November 4, 2026 19:47
f5c0bb2 to
0160558
Compare
Port NumPy's continuous samplers to device kernels: exponential, gamma, beta, chisquare, standard_t, f, lognormal, standard_cauchy, wald, pareto, weibull, power, rayleigh, laplace, gumbel, logistic, triangular and vonmises. The rejection samplers return NaN for device parameters that would make them loop forever.
ndgrigorian
force-pushed
the
feature/device-rng-continuous
branch
from
November 4, 2026 19:50
0160558 to
adf7178
Compare
ndgrigorian
force-pushed
the
feature/device-rng-generator
branch
from
November 4, 2026 19:50
3963d20 to
6c3ff46
Compare
Contributor
|
Array API standard conformance tests for dpnp=0.22.0dev0=np2py314h8d9cdd5_28 ran successfully. |
Collaborator
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.
This PR adds the continuous distributions to
dpnp.random.Generator, as part of the series splitting #3147. It is stacked on #3157The samplers are device ports of NumPy's algorithms:
exponential,standard_exponential,pareto,weibull,power,rayleighgamma,standard_gamma,beta,chisquare,standard_t,flognormal,standard_cauchy,wald,laplace,gumbel,logistic,triangular,vonmisesParameters on the device aren't checked, since that would wait for the device. The rejection samplers instead return NaN for parameters that would make them loop forever, including valid ones that round badly in single precision