Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the Numba implementation of CauchyRV #843

Merged

Conversation

brandonwillard
Copy link
Member

@brandonwillard brandonwillard commented Mar 3, 2022

This PR fixes the Numba implementation of CauchyRV.

The current tests for RandomVariable implementations that don't match the Aesara/NumPy RNG states need to be updated, because they're all set to xfail and—as a result—do not really verifying anything. I might fix that in this PR as well.

@brandonwillard brandonwillard added Numba Involves Numba transpilation random variables Involves random variables and/or sampling labels Mar 3, 2022
@brandonwillard brandonwillard self-assigned this Mar 3, 2022
@codecov
Copy link

codecov bot commented Mar 4, 2022

Codecov Report

Merging #843 (5349add) into main (0c7720c) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #843      +/-   ##
==========================================
- Coverage   78.44%   78.44%   -0.01%     
==========================================
  Files         154      154              
  Lines       47742    47749       +7     
  Branches    10848    10848              
==========================================
+ Hits        37451    37456       +5     
- Misses       7749     7750       +1     
- Partials     2542     2543       +1     
Impacted Files Coverage Δ
aesara/link/numba/dispatch/random.py 98.68% <100.00%> (+0.05%) ⬆️
aesara/tensor/random/basic.py 98.90% <100.00%> (+<0.01%) ⬆️
aesara/tensor/var.py 86.13% <0.00%> (-0.40%) ⬇️

twiecki
twiecki previously approved these changes Mar 4, 2022
`aesara.random.basic.negative_binomial` has also been added as an alias to
`aesara.random.basic.nbinom`.
@brandonwillard brandonwillard merged commit 0b8d47f into aesara-devs:main Mar 5, 2022
@brandonwillard brandonwillard deleted the fix-numba-cauchy-sampler branch March 5, 2022 23:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Numba Involves Numba transpilation random variables Involves random variables and/or sampling
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants