Skip to content

Add ChiSquared moment #5154

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 3 commits into from
Nov 8, 2021
Merged

Add ChiSquared moment #5154

merged 3 commits into from
Nov 8, 2021

Conversation

patel-zeel
Copy link
Contributor

Add moments and tests for the below distributions as part of #5078

  • pymc.distributions.continuous.ChiSquared

@twiecki twiecki mentioned this pull request Nov 8, 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.

Thanks for opening a PR. I left a small suggestion. Looks great by the way!

@patel-zeel
Copy link
Contributor Author

Agree. Implemented the suggestion :)

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 good. Waiting to see if the tests pass

@codecov
Copy link

codecov bot commented Nov 8, 2021

Codecov Report

Merging #5154 (ebc1c25) into main (310a6b9) will decrease coverage by 0.06%.
The diff coverage is 100.00%.

❗ Current head ebc1c25 differs from pull request most recent head 1f81e22. Consider uploading reports for the commit 1f81e22 to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##             main    #5154      +/-   ##
==========================================
- Coverage   77.99%   77.92%   -0.07%     
==========================================
  Files          88       88              
  Lines       14094    14099       +5     
==========================================
- Hits        10992    10987       -5     
- Misses       3102     3112      +10     
Impacted Files Coverage Δ
pymc/distributions/continuous.py 95.82% <100.00%> (+0.02%) ⬆️
pymc/step_methods/hmc/integration.py 78.84% <0.00%> (-3.85%) ⬇️
pymc/backends/report.py 89.51% <0.00%> (-2.10%) ⬇️
pymc/parallel_sampling.py 86.33% <0.00%> (-1.00%) ⬇️
pymc/tests/sampler_fixtures.py 90.51% <0.00%> (-0.73%) ⬇️
pymc/step_methods/hmc/nuts.py 95.00% <0.00%> (-0.63%) ⬇️

@patel-zeel
Copy link
Contributor Author

Not sure why test_exec_nuts_init failed. Can you please help me with this @ricardoV94?

@ricardoV94
Copy link
Member

Not sure why test_exec_nuts_init failed. Can you please help me with this @ricardoV94?

Can you replicate the failure locally?

@patel-zeel
Copy link
Contributor Author

I tried and it seems to work locally.
image

@ricardoV94
Copy link
Member

Probably it was a fluke, because find_MAP is still starting from prior draws instead of moments, so that test is not even deterministic. The changes to the Chisquared from this PR look completely unrelated. I'll merge this already.

@ricardoV94 ricardoV94 merged commit 4da614d into pymc-devs:main Nov 8, 2021
@ricardoV94
Copy link
Member

Thanks for your help @patel-zeel!

@patel-zeel
Copy link
Contributor Author

Thank, you @ricardoV94 for the clarification and for accepting the PR :)

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