-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Vonmises moments #5232
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
Vonmises moments #5232
Conversation
The curren tests should work fine, but if I use np.arange(5) as mu in line 446 ,f or example, I get as a result array([ 0., 1., 2., 3., -2.28318531]), which is not what I would expect. I couldn't figure out where -2.2831853 is coming from. Other strange numbers appear when I run the test for np.arange(k) with k>4. |
Seems like it is just mirroring around |
Codecov Report
@@ Coverage Diff @@
## main #5232 +/- ##
==========================================
- Coverage 78.95% 78.94% -0.01%
==========================================
Files 88 88
Lines 14232 14237 +5
==========================================
+ Hits 11237 11240 +3
- Misses 2995 2997 +2
|
/pre-commit-run |
All tests are passing except for a pre-commit issue. I added a commit fix it with the bot, so make sure to merge from here if you want to do anything with this branch. I guess you were seeing the effects of the CircularTransform? with pm.Model() as m:
x = pm.Vonmises("x", np.arange(4))
y = pm.Vonmises("y", np.arange(4), transform=None) The moment of
|
Thanks @Domenico89, everything seemed to be working in our tests here. Let me know if you find issues that need to be fixed or if my hunch above was correct. |
ah, ok. Sorry if took this long, I am new with the base code. Thanks for the hunch! |
Add moments and tests for the below distributions as part of #5078:
-pymc.distributions.continuous.VonMises