Skip to content

Adding moment for Moyal distribution and corresponding tests #5179

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

Merged
merged 2 commits into from
Nov 14, 2021

Conversation

jlopezarriaza
Copy link
Contributor

Add Moyla moment and corresponding tests to help with #5078

@jlopezarriaza jlopezarriaza mentioned this pull request Nov 12, 2021
51 tasks
Copy link
Member

@ricardoV94 ricardoV94 left a comment

Choose a reason for hiding this comment

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

Looks great. Thanks for opening the PR.I have just a small change suggestion.

@@ -3727,6 +3727,14 @@ def dist(cls, mu=0, sigma=1.0, *args, **kwargs):

return super().dist([mu, sigma], *args, **kwargs)

def get_moment(rv, size, mu, sigma):
mu, sigma = at.broadcast_arrays(mu, sigma)
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
mu, sigma = at.broadcast_arrays(mu, sigma)

This is not needed here. The parameters will be automatically broadcasted below as long as they show up in the same expression

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed. Thanks.

@ricardoV94 ricardoV94 changed the title Adding moment for Moyla distribution and corresponding tests Adding moment for Moyal distribution and corresponding tests Nov 13, 2021
@codecov
Copy link

codecov bot commented Nov 13, 2021

Codecov Report

Merging #5179 (56acb01) into main (275c145) will decrease coverage by 0.02%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #5179      +/-   ##
==========================================
- Coverage   78.09%   78.06%   -0.03%     
==========================================
  Files          88       88              
  Lines       14149    14171      +22     
==========================================
+ Hits        11050    11063      +13     
- Misses       3099     3108       +9     
Impacted Files Coverage Δ
pymc/distributions/continuous.py 96.46% <ø> (+0.07%) ⬆️
pymc/backends/report.py 89.51% <0.00%> (-2.10%) ⬇️
pymc/distributions/discrete.py 98.30% <0.00%> (-1.12%) ⬇️
pymc/bart/pgbart.py 96.24% <0.00%> (-0.38%) ⬇️
pymc/smc/smc.py 98.30% <0.00%> (-0.05%) ⬇️
pymc/initial_point.py 100.00% <0.00%> (ø)
pymc/distributions/multivariate.py 71.47% <0.00%> (+0.19%) ⬆️

@ricardoV94
Copy link
Member

Looks good. Waiting to see if the tests pass

@ricardoV94 ricardoV94 merged commit 38f2632 into pymc-devs:main Nov 14, 2021
@ricardoV94
Copy link
Member

Thanks for the help @jlopezarriaza!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants