-
Notifications
You must be signed in to change notification settings - Fork 5
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
Add simple svi tests to pyroapi.tests #5
Conversation
@neerajprad Could you help me out with the last two remining NumPyro errors:
2. |
Yes, taking a look at those errors now. |
I am not able to replicate those failures. Could you point me to which tests are failing? The only failures that I see are Attribute error for |
BTW I am running these on my mac. Should I do anything special to get an environment? |
I don't think so, maybe just updating scipy should be fine? My scipy version is |
Thanks, it looks like this is a Python 3.7 issue; I can see passing tests on Python 3.6. Looks like the last blocker is pyro-ppl/pyro#2062 |
Just merged #2062 in Pyro. |
I'll fix the .data bug and push. |
@@ -3,6 +3,8 @@ | |||
from pyroapi import pyro_backend | |||
from pyroapi.tests import * # noqa F401 | |||
|
|||
pytestmark = pytest.mark.filterwarnings("ignore::numpyro.compat.util.UnsupportedAPIWarning") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, it will makes more sense to have this in pyro-api instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great. I will try to increase coverage in numpyro once this merges.
Addresses #2
This is a good challenge to see how we can make tests generic.
Tasks
ones
,zeros
,randn
tofunsor.ops
Add zeros, ones, randn to funsor.compat.ops funsor#270dim
arg Exclude seed handler from the PYRO_STACK pyro#2061assert_close(-,-)
withops.allclose
Add ops.allclose to funsor.compat.ops funsor#272event_dim
arg Deprecate pyro.generic in favor of pyroapi pyro#2062Triaged
fix funsor plate size error:test_data_generate_plate()